diff options
| author | Liel Harel <[email protected]> | 2026-05-10 00:06:07 +0300 |
|---|---|---|
| committer | Peter Robinson <[email protected]> | 2026-05-26 12:11:50 +0100 |
| commit | 29c7796a718977ac78da7d381daec9828ec8c995 (patch) | |
| tree | cfa089204836b5c10afc4ad8e9fb841264df007a /include/linux/string.h | |
| parent | 17ceb774a1854dd9632ee724266d29b907e51678 (diff) | |
mmc: bcm2835_sdhci: Parse generic MMC device tree properties
The bcm2835 SDHCI driver sets up the MMC host configuration via
sdhci_setup_cfg(), but does not parse generic MMC device tree
properties.
As a result, properties such as bus-width are ignored. On Raspberry Pi
Compute Module 4, the eMMC node describes an 8-bit bus, but U-Boot
initialized the device as 4-bit.
Call mmc_of_parse() before sdhci_setup_cfg() so that generic MMC
properties are folded into the host configuration before the MMC core
selects the bus width.
Before this change, mmc info reported:
Bus Speed: 52000000
Bus Width: 4-bit
After this change, mmc info reports:
Bus Speed: 52000000
Bus Width: 8-bit
Tested on Raspberry Pi Compute Module 4 with onboard eMMC.
Signed-off-by: Liel Harel <[email protected]>
Reviewed-by: Peter Robinson <[email protected]>
Tested-by: Peter Robinson <[email protected]> # on the CM4 as well
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
