Fix MMC numbering issue for Raspberry Pi 3
PATCH 1/1 Fix MMC numbering issue for Raspberry Pi 3
From: Mike Karels <[email protected]>
Using mmc.dtbo from rpi-firmware to switch the controller for the SD card slot from sdhci to sdhost causes the numbering to change; the SD card is then not recognized at boot. Add to the range checked.
--- include/configs/rpi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/rpi.h +2 -1
@@ -137,7 +137,8 @@#if CONFIG_IS_ENABLED (CMD_MMC )#define BOOT_TARGET_MMC (func) \ func(MMC, mmc, 0) \ - func(MMC, mmc, 1) + func(MMC, mmc, 1) \ + func(MMC, mmc, 2)#else #define BOOT_TARGET_MMC (func)#endif
Signature · 1 line
2.32.0
Quoted 26 lines · On Wed, 27 Oct 2021 22:26:15 +0000 [email protected] wrote:
From: Mike Karels <[email protected]>
Using mmc.dtbo from rpi-firmware to switch the controller for the SD card slot from sdhci to sdhost causes the numbering to change; the SD card is then not recognized at boot. Add to the range checked.
--- include/configs/rpi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/configs/rpi.h +2
-1@@ -137,7 +137,8 @@#if CONFIG_IS_ENABLED (CMD_MMC )#define BOOT_TARGET_MMC (func) \ func(MMC, mmc, 0) \ - func(MMC, mmc, 1) + func(MMC, mmc, 1) \ + func(MMC, mmc, 2)#else #define BOOT_TARGET_MMC (func)#endif Signature · 1 line
2.32.0
Signature · 1 line
Emmanuel Vadot <[email protected]> <[email protected]>
Matthias Brugger
AppliedQuoted 23 lines · Emmanuel Vadot
Quoted 20 lines · On Wed, 27 Oct 2021 22:26:15 +0000 [email protected] wrote:
From: Mike Karels <[email protected]>
Using mmc.dtbo from rpi-firmware to switch the controller for the SD card slot from sdhci to sdhost causes the numbering to change; the SD card is then not recognized at boot. Add to the range checked.
--- include/configs/rpi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)include/configs/rpi.h +2
-1@@ -137,7 +137,8 @@#if CONFIG_IS_ENABLED (CMD_MMC )#define BOOT_TARGET_MMC (func) \ func(MMC, mmc, 0) \ - func(MMC, mmc, 1) + func(MMC, mmc, 1) \ + func(MMC, mmc, 2)
Quoted 8 lines
Quoted 6 lines
include/configs/rpi.h +0
-0#else #define BOOT_TARGET_MMC (func)#endif Signature · 1 line
2.32.0Reviewed-by Emmanuel Vadot <[email protected]>
Applied to rpi-next
Thanks!
Quoted 3 lines
Signature · 2 lines
-- Emmanuel Vadot <[email protected]> <[email protected]>