* [PATCH] mmc: dw_mmc: Remove architecture dependency
@ 2014-08-13 17:32 Andrew Bresticker
2014-08-13 22:21 ` Alim Akhtar
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Bresticker @ 2014-08-13 17:32 UTC (permalink / raw)
To: Chris Ball, Ulf Hansson
Cc: Seungwon Jeon, Jaehoon Chung, Doug Anderson, linux-mmc,
linux-kernel, Andrew Bresticker
The dw_mmc host may also be present on non-ARC/ARM SoCs (e.g. MIPS)
and the driver itself does not appear to depend on any particular
architecture(s).
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
---
drivers/mmc/host/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index a565254..15b110a 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -563,7 +563,6 @@ config SDH_BFIN_MISSING_CMD_PULLUP_WORKAROUND
config MMC_DW
tristate "Synopsys DesignWare Memory Card Interface"
- depends on ARC || ARM
help
This selects support for the Synopsys DesignWare Mobile Storage IP
block, this provides host support for SD and MMC interfaces, in both
--
2.1.0.rc2.206.gedb03e5
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mmc: dw_mmc: Remove architecture dependency
2014-08-13 17:32 [PATCH] mmc: dw_mmc: Remove architecture dependency Andrew Bresticker
@ 2014-08-13 22:21 ` Alim Akhtar
2014-08-13 22:46 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Alim Akhtar @ 2014-08-13 22:21 UTC (permalink / raw)
To: Andrew Bresticker
Cc: Chris Ball, Ulf Hansson, Seungwon Jeon, Jaehoon Chung,
Doug Anderson, linux-mmc, linux-kernel
Hi Andrew,
On Wed, Aug 13, 2014 at 11:02 PM, Andrew Bresticker
<abrestic@chromium.org> wrote:
> The dw_mmc host may also be present on non-ARC/ARM SoCs (e.g. MIPS)
> and the driver itself does not appear to depend on any particular
> architecture(s).
>
> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
> ---
> drivers/mmc/host/Kconfig | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> index a565254..15b110a 100644
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -563,7 +563,6 @@ config SDH_BFIN_MISSING_CMD_PULLUP_WORKAROUND
>
> config MMC_DW
> tristate "Synopsys DesignWare Memory Card Interface"
> - depends on ARC || ARM
I am not sure if just removing _depends_ is good vs adding another
architecture(s) dependency here.
There are n number of places in Kconfig where this _depends_ runs up
to well over 10 entries.
What about config like MMC_DW_EXYNOS and MMC_DW_K3 which depends on
MMC_DW? Is it ok to expose them as well for architectures which might
not contains these variants?
One way I found this useful, one need not worry about finding MMC_DW
in there arch default menu-config, this will just appear, go and
select it.
Lets see what others think about this.
> help
> This selects support for the Synopsys DesignWare Mobile Storage IP
> block, this provides host support for SD and MMC interfaces, in both
> --
> 2.1.0.rc2.206.gedb03e5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Alim
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mmc: dw_mmc: Remove architecture dependency
2014-08-13 22:21 ` Alim Akhtar
@ 2014-08-13 22:46 ` Arnd Bergmann
2014-08-14 0:13 ` Andrew Bresticker
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2014-08-13 22:46 UTC (permalink / raw)
To: Alim Akhtar
Cc: Andrew Bresticker, Chris Ball, Ulf Hansson, Seungwon Jeon,
Jaehoon Chung, Doug Anderson, linux-mmc, linux-kernel
On Thursday 14 August 2014 03:51:43 Alim Akhtar wrote:
> On Wed, Aug 13, 2014 at 11:02 PM, Andrew Bresticker
> <abrestic@chromium.org> wrote:
> > The dw_mmc host may also be present on non-ARC/ARM SoCs (e.g. MIPS)
> > and the driver itself does not appear to depend on any particular
> > architecture(s).
> >
> > Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
> > ---
> > drivers/mmc/host/Kconfig | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> > index a565254..15b110a 100644
> > --- a/drivers/mmc/host/Kconfig
> > +++ b/drivers/mmc/host/Kconfig
> > @@ -563,7 +563,6 @@ config SDH_BFIN_MISSING_CMD_PULLUP_WORKAROUND
> >
> > config MMC_DW
> > tristate "Synopsys DesignWare Memory Card Interface"
> > - depends on ARC || ARM
>
> I am not sure if just removing _depends_ is good vs adding another
> architecture(s) dependency here.
> There are n number of places in Kconfig where this _depends_ runs up
> to well over 10 entries.
> What about config like MMC_DW_EXYNOS and MMC_DW_K3 which depends on
> MMC_DW? Is it ok to expose them as well for architectures which might
> not contains these variants?
>
> One way I found this useful, one need not worry about finding MMC_DW
> in there arch default menu-config, this will just appear, go and
> select it.
>
> Lets see what others think about this.
In general, it's best to have specific dependencies on the subsystem
a driver uses. You probably need something like
depends on HAS_IOMEM && COMMON_CLK && REGULATOR
depends on COMPILE_TEST || ARC || ARM || MIPS
to cover all the possible cases. The specific options are probably
not the ones I listed above, but you should get the idea. Most importantly,
you don't want to allow building the driver on architectures on which
it can't compile.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mmc: dw_mmc: Remove architecture dependency
2014-08-13 22:46 ` Arnd Bergmann
@ 2014-08-14 0:13 ` Andrew Bresticker
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Bresticker @ 2014-08-14 0:13 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Alim Akhtar, Chris Ball, Ulf Hansson, Seungwon Jeon,
Jaehoon Chung, Doug Anderson, linux-mmc, linux-kernel
> In general, it's best to have specific dependencies on the subsystem
> a driver uses. You probably need something like
>
> depends on HAS_IOMEM && COMMON_CLK && REGULATOR
> depends on COMPILE_TEST || ARC || ARM || MIPS
>
> to cover all the possible cases. The specific options are probably
> not the ones I listed above, but you should get the idea. Most importantly,
> you don't want to allow building the driver on architectures on which
> it can't compile.
The only compile-time dependencies I see are HAS_IOMEM (which MMC
already depends on) and HAS_DMA. There isn't any compile-time
dependency on COMMON_CLK, REGULATOR, GPIOLIB, OF, etc. I've compiled
it successfully for a few non-ARM/ARC architectures, though that
certainly isn't an exhaustive test. To be safe though, perhaps I'll
just update the architecture dependency to include MIPS ||
COMPILE_TEST as you suggested.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-14 0:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-13 17:32 [PATCH] mmc: dw_mmc: Remove architecture dependency Andrew Bresticker
2014-08-13 22:21 ` Alim Akhtar
2014-08-13 22:46 ` Arnd Bergmann
2014-08-14 0:13 ` Andrew Bresticker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®