diff mbox

[U-Boot] spl: Kconfig: SPL_MMC_SUPPORT depends on GENERIC_MMC

Message ID 1489813540-26133-1-git-send-email-alex.g@adaptrum.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Alexandru Gagniuc March 18, 2017, 5:05 a.m. UTC
spl_mmc.c calls mmc_initialize(). This symbol is provided in
drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
---
 common/spl/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini March 21, 2017, 12:04 a.m. UTC | #1
On Fri, Mar 17, 2017 at 10:05:40PM -0700, Alexandru Gagniuc wrote:

> spl_mmc.c calls mmc_initialize(). This symbol is provided in
> drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.
> 
> Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
> ---
>  common/spl/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index 60ae60c..0b2b7ff 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -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.
Alexandru Gagniuc March 27, 2017, 7:13 p.m. UTC | #2
On 03/20/2017 05:04 PM, Tom Rini wrote:
> On Fri, Mar 17, 2017 at 10:05:40PM -0700, Alexandru Gagniuc wrote:
>
>> spl_mmc.c calls mmc_initialize(). This symbol is provided in
>> drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.
>>
>> Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
>> ---
>>  common/spl/Kconfig | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
>> index 60ae60c..0b2b7ff 100644
>> --- a/common/spl/Kconfig
>> +++ b/common/spl/Kconfig
>> @@ -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
Tom Rini April 4, 2017, 3:10 p.m. UTC | #3
On Mon, Mar 27, 2017 at 12:13:04PM -0700, Alexandru Gagniuc wrote:
> On 03/20/2017 05:04 PM, Tom Rini wrote:
> >On Fri, Mar 17, 2017 at 10:05:40PM -0700, Alexandru Gagniuc wrote:
> >
> >>spl_mmc.c calls mmc_initialize(). This symbol is provided in
> >>drivers/mmc/mmc.c when CONFIG_GENERIC_MMC is enabled.
> >>
> >>Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
> >>---
> >> common/spl/Kconfig | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >>diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> >>index 60ae60c..0b2b7ff 100644
> >>--- a/common/spl/Kconfig
> >>+++ b/common/spl/Kconfig
> >>@@ -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.

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.
diff mbox

Patch

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 60ae60c..0b2b7ff 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -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