Skip to contentSkip to conversation

Fix MMC numbering issue for Raspberry Pi 3

PATCH Applied [email protected] 3 participants 3 messages Oct 27, 2021 – Nov 30, 2021

lore
Share & tools
lore
#0 lore raw

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
index 55768a46da..4c5c1ac31f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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
index 55768a46da..4c5c1ac31f 100644
@@ -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]>
#2 lore raw
Quoted 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
index 55768a46da..4c5c1ac31f 100644
@@ -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.0

Applied to rpi-next

Thanks!

Quoted 3 lines
Signature · 2 lines
-- 
Emmanuel Vadot <[email protected]> <[email protected]>