Skip to contentSkip to conversation

spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC

PATCH In review Alexandru Gagniuc 2 participants 6 messages Mar 18, 2017 – Apr 9, 2017 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC

spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.

---
 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/spl/Kconfig +1 -0
index 60ae60c..0b2b7ff 100644
@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT
 config SPL_MMC_SUPPORT
 	bool "Support MMC"
 	depends on SPL
+	depends on GENERIC_MMC
 	help
 	  Enable support for MMC (Multimedia Card) within SPL. This enables
 	  the MMC protocol implementation and allows any enabled drivers to
Signature · 1 line
2.7.4
#1 lore raw
Quoted 13 lines · Alexandru Gagniuc

spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.

---
 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
common/spl/Kconfig +0 -0
index 60ae60c..0b2b7ff 100644

common/spl/Kconfig config SPL_LIBGENERIC_SUPPORT · line 360

Quoted 7 lines
common/spl/Kconfig +1 -0
@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT
 config SPL_MMC_SUPPORT
 	bool "Support MMC"
 	depends on SPL
+	depends on GENERIC_MMC
 	help
 	  Enable support for MMC (Multimedia Card) within SPL. This enables
 	  the MMC protocol implementation and allows any enabled drivers to

This isn't 100% right as it breaks some sunxi boards as-is, CHIP (which indeed doesn't do MMC) and Nintendo_NES_Classic_Edition.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170320/b8d202b1/attachment.sig>
#2 lore raw
Quoted 10 lines · Tom Rini
Quoted 8 lines · Alexandru Gagniuc

spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.

---
 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines

common/spl/Kconfig config SPL_LIBGENERIC_SUPPORT · line 360

Quoted 12 lines
common/spl/Kconfig +1 -0
index 60ae60c..0b2b7ff 100644
@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT
 config SPL_MMC_SUPPORT
 	bool "Support MMC"
 	depends on SPL
+	depends on GENERIC_MMC
 	help
 	  Enable support for MMC (Multimedia Card) within SPL. This enables
 	  the MMC protocol implementation and allows any enabled drivers to

This isn't 100% right as it breaks some sunxi boards as-is, CHIP (which indeed doesn't do MMC) and Nintendo_NES_Classic_Edition.

How exactly does it break things? Do you have a link to build test results. If I don't know what's broken, I can't fix it.

Alex

#3 lore raw
Quoted 27 lines · Alexandru Gagniuc
Quoted 10 lines · Tom Rini
Quoted 8 lines · Alexandru Gagniuc

spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.

---
common/spl/Kconfig | 1 +

1 file changed, 1 insertion(+)
Quoted 15 lines
Quoted 9 lines
common/spl/Kconfig +0 -0
index 60ae60c..0b2b7ff 100644
@@ -354,6 +354,7 @@ config SPL_LIBGENERIC_SUPPORT

config SPL_MMC_SUPPORT
bool "Support MMC"
depends on SPL

common/spl/Kconfig +1 -0
+	depends on GENERIC_MMC
Quoted 3 lines

help
Enable support for MMC (Multimedia Card) within SPL. This enables the MMC protocol implementation and allows any enabled drivers to

This isn't 100% right as it breaks some sunxi boards as-is, CHIP (which indeed doesn't do MMC) and Nintendo_NES_Classic_Edition.

Quoted 2 lines

How exactly does it break things? Do you have a link to build test results. If I don't know what's broken, I can't fix it.

If you build one of those platforms (which just needs a regular ARM toolchain), you'll see it. I don't have the logs around, sorry.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170404/1b8d9a61/attachment.sig>
#4 lore raw

PATCH 1/1 spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC

spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled. The sunxi Kconfig case is an oddball because it redefines SPL_MMC_SUPPORT.

---
Changes since v1:
* Applied same dependency logic to sunxi Kconfig file

 board/sunxi/Kconfig | 2 ++
 common/spl/Kconfig  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
board/sunxi/Kconfig +2 -0
index 37b4252..bc01930 100644
@@ -3,6 +3,7 @@ if ARCH_SUNXI
 config IDENT_STRING
 	default " Allwinner Technology"
 
+# FIXME: Should not redefine these Kconfig symbols
 config PRE_CONSOLE_BUFFER
 	default y
 
@@ -19,6 +20,7 @@ config SPL_LIBGENERIC_SUPPORT
 	default y
 
 config SPL_MMC_SUPPORT
+	depends on SPL && GENERIC_MMC
 	default y
 
 config SPL_POWER_SUPPORT
common/spl/Kconfig +1 -1
index 6752b5c..ea6fbb6 100644
@@ -371,7 +371,7 @@ config SPL_LIBGENERIC_SUPPORT
 
 config SPL_MMC_SUPPORT
 	bool "Support MMC"
-	depends on SPL
+	depends on SPL && GENERIC_MMC
 	help
 	  Enable support for MMC (Multimedia Card) within SPL. This enables
 	  the MMC protocol implementation and allows any enabled drivers to
Signature · 1 line
2.9.3
#5 lore raw
Quoted 6 lines · Alexandru Gagniuc

spl_mmc.c calls mmc_initialize(). This symbol is provided in drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled. The sunxi Kconfig case is an oddball because it redefines SPL_MMC_SUPPORT.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170408/ff51f4c1/attachment.sig>