* [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
@ 2024-06-20 7:42 Peter Robinson
2024-06-20 12:08 ` Andrea della Porta
2024-06-20 15:14 ` Ulf Hansson
0 siblings, 2 replies; 7+ messages in thread
From: Peter Robinson @ 2024-06-20 7:42 UTC (permalink / raw)
To: linux-mmc
Cc: Peter Robinson, Andrea della Porta, Stefan Wahren, Adrian Hunter,
Ulf Hansson
The Raspberry Pi devices have to date all used ARCH_BCM2835
as their SoC arch dependency so configurations that use this
and not BRCMSTB won't end up with this module in their config.
Cc: Andrea della Porta <andrea.porta@suse.com>
Cc: Stefan Wahren <wahrenst@gmx.net>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
drivers/mmc/host/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index bb0d4fb0892ae..eb3ecfe055910 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
config MMC_SDHCI_BRCMSTB
tristate "Broadcom SDIO/SD/MMC support"
- depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
+ depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
depends on MMC_SDHCI_PLTFM
select MMC_CQHCI
default ARCH_BRCMSTB || BMIPS_GENERIC
--
2.45.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
2024-06-20 7:42 [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option Peter Robinson
@ 2024-06-20 12:08 ` Andrea della Porta
2024-06-20 12:22 ` Peter Robinson
2024-06-20 15:14 ` Ulf Hansson
1 sibling, 1 reply; 7+ messages in thread
From: Andrea della Porta @ 2024-06-20 12:08 UTC (permalink / raw)
To: Peter Robinson
Cc: linux-mmc, Andrea della Porta, Stefan Wahren, Adrian Hunter,
Ulf Hansson
Hi Peter,
On 08:42 Thu 20 Jun , Peter Robinson wrote:
> The Raspberry Pi devices have to date all used ARCH_BCM2835
> as their SoC arch dependency so configurations that use this
> and not BRCMSTB won't end up with this module in their config.
AFAIK the BCM2712 (RPi5) is the only SoC of the Raspberry family
that has an MMC host controller that is more or less like the one
present on the STB line silicon. Adding ARCH_BCM2835 to the dependency
will then allow RPi<=4 to use this driver for which they do not
have the relevant hw.
If I'm correct about the aforementioned point, I'd be inclined to
avoid this change, then.
Many thanks,
Andrea
>
> Cc: Andrea della Porta <andrea.porta@suse.com>
> Cc: Stefan Wahren <wahrenst@gmx.net>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> ---
> drivers/mmc/host/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> index bb0d4fb0892ae..eb3ecfe055910 100644
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
>
> config MMC_SDHCI_BRCMSTB
> tristate "Broadcom SDIO/SD/MMC support"
> - depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
> + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
> depends on MMC_SDHCI_PLTFM
> select MMC_CQHCI
> default ARCH_BRCMSTB || BMIPS_GENERIC
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
2024-06-20 12:08 ` Andrea della Porta
@ 2024-06-20 12:22 ` Peter Robinson
2024-06-20 12:29 ` Andrea della Porta
0 siblings, 1 reply; 7+ messages in thread
From: Peter Robinson @ 2024-06-20 12:22 UTC (permalink / raw)
To: Peter Robinson, linux-mmc, Andrea della Porta, Stefan Wahren,
Adrian Hunter, Ulf Hansson
Hi Andrea,
> On 08:42 Thu 20 Jun , Peter Robinson wrote:
> > The Raspberry Pi devices have to date all used ARCH_BCM2835
> > as their SoC arch dependency so configurations that use this
> > and not BRCMSTB won't end up with this module in their config.
>
> AFAIK the BCM2712 (RPi5) is the only SoC of the Raspberry family
> that has an MMC host controller that is more or less like the one
> present on the STB line silicon. Adding ARCH_BCM2835 to the dependency
> will then allow RPi<=4 to use this driver for which they do not
> have the relevant hw.
It won't use the driver due to the different compatibles, it just
allows the driver to be available. The various different gens of RPi
now have around 4 different types of MMC controller in use.
> If I'm correct about the aforementioned point, I'd be inclined to
> avoid this change, then.
>
> Many thanks,
> Andrea
>
> >
> > Cc: Andrea della Porta <andrea.porta@suse.com>
> > Cc: Stefan Wahren <wahrenst@gmx.net>
> > Cc: Adrian Hunter <adrian.hunter@intel.com>
> > Cc: Ulf Hansson <ulf.hansson@linaro.org>
> > Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
> > Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> > ---
> > drivers/mmc/host/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> > index bb0d4fb0892ae..eb3ecfe055910 100644
> > --- a/drivers/mmc/host/Kconfig
> > +++ b/drivers/mmc/host/Kconfig
> > @@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
> >
> > config MMC_SDHCI_BRCMSTB
> > tristate "Broadcom SDIO/SD/MMC support"
> > - depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
> > + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
> > depends on MMC_SDHCI_PLTFM
> > select MMC_CQHCI
> > default ARCH_BRCMSTB || BMIPS_GENERIC
> > --
> > 2.45.2
> >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
2024-06-20 12:22 ` Peter Robinson
@ 2024-06-20 12:29 ` Andrea della Porta
2024-06-20 13:03 ` Peter Robinson
0 siblings, 1 reply; 7+ messages in thread
From: Andrea della Porta @ 2024-06-20 12:29 UTC (permalink / raw)
To: Peter Robinson
Cc: linux-mmc, Andrea della Porta, Stefan Wahren, Adrian Hunter,
Ulf Hansson
Hi Peter,
On 13:22 Thu 20 Jun , Peter Robinson wrote:
> Hi Andrea,
>
> > On 08:42 Thu 20 Jun , Peter Robinson wrote:
> > > The Raspberry Pi devices have to date all used ARCH_BCM2835
> > > as their SoC arch dependency so configurations that use this
> > > and not BRCMSTB won't end up with this module in their config.
> >
> > AFAIK the BCM2712 (RPi5) is the only SoC of the Raspberry family
> > that has an MMC host controller that is more or less like the one
> > present on the STB line silicon. Adding ARCH_BCM2835 to the dependency
> > will then allow RPi<=4 to use this driver for which they do not
> > have the relevant hw.
>
> It won't use the driver due to the different compatibles, it just
> allows the driver to be available. The various different gens of RPi
> now have around 4 different types of MMC controller in use.
True, so why make a driver available if I can't use it anyway? No other
SoC served by ARCH_BCM2835 have that hw, but as you said, every one of them
have different controllers best served by anything else but SDHCI_BRCMSTB.
Thanks,
Andrea
>
> > If I'm correct about the aforementioned point, I'd be inclined to
> > avoid this change, then.
> >
> > Many thanks,
> > Andrea
> >
> > >
> > > Cc: Andrea della Porta <andrea.porta@suse.com>
> > > Cc: Stefan Wahren <wahrenst@gmx.net>
> > > Cc: Adrian Hunter <adrian.hunter@intel.com>
> > > Cc: Ulf Hansson <ulf.hansson@linaro.org>
> > > Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
> > > Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> > > ---
> > > drivers/mmc/host/Kconfig | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> > > index bb0d4fb0892ae..eb3ecfe055910 100644
> > > --- a/drivers/mmc/host/Kconfig
> > > +++ b/drivers/mmc/host/Kconfig
> > > @@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
> > >
> > > config MMC_SDHCI_BRCMSTB
> > > tristate "Broadcom SDIO/SD/MMC support"
> > > - depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
> > > + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
> > > depends on MMC_SDHCI_PLTFM
> > > select MMC_CQHCI
> > > default ARCH_BRCMSTB || BMIPS_GENERIC
> > > --
> > > 2.45.2
> > >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
2024-06-20 12:29 ` Andrea della Porta
@ 2024-06-20 13:03 ` Peter Robinson
2024-06-20 13:51 ` Andrea della Porta
0 siblings, 1 reply; 7+ messages in thread
From: Peter Robinson @ 2024-06-20 13:03 UTC (permalink / raw)
To: Peter Robinson, linux-mmc, Andrea della Porta, Stefan Wahren,
Adrian Hunter, Ulf Hansson
On Thu, 20 Jun 2024 at 13:29, Andrea della Porta <andrea.porta@suse.com> wrote:
>
> Hi Peter,
>
> On 13:22 Thu 20 Jun , Peter Robinson wrote:
> > Hi Andrea,
> >
> > > On 08:42 Thu 20 Jun , Peter Robinson wrote:
> > > > The Raspberry Pi devices have to date all used ARCH_BCM2835
> > > > as their SoC arch dependency so configurations that use this
> > > > and not BRCMSTB won't end up with this module in their config.
> > >
> > > AFAIK the BCM2712 (RPi5) is the only SoC of the Raspberry family
> > > that has an MMC host controller that is more or less like the one
> > > present on the STB line silicon. Adding ARCH_BCM2835 to the dependency
> > > will then allow RPi<=4 to use this driver for which they do not
> > > have the relevant hw.
> >
> > It won't use the driver due to the different compatibles, it just
> > allows the driver to be available. The various different gens of RPi
> > now have around 4 different types of MMC controller in use.
>
> True, so why make a driver available if I can't use it anyway? No other
> SoC served by ARCH_BCM2835 have that hw, but as you said, every one of them
> have different controllers best served by anything else but SDHCI_BRCMSTB.
We, at least in Fedora, don't enable ARCH_BRCMSTB as it brings a lot
of HW and drivers we can't support.
> Thanks,
> Andrea
>
> >
> > > If I'm correct about the aforementioned point, I'd be inclined to
> > > avoid this change, then.
> > >
> > > Many thanks,
> > > Andrea
> > >
> > > >
> > > > Cc: Andrea della Porta <andrea.porta@suse.com>
> > > > Cc: Stefan Wahren <wahrenst@gmx.net>
> > > > Cc: Adrian Hunter <adrian.hunter@intel.com>
> > > > Cc: Ulf Hansson <ulf.hansson@linaro.org>
> > > > Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
> > > > Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> > > > ---
> > > > drivers/mmc/host/Kconfig | 2 +-
> > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> > > > index bb0d4fb0892ae..eb3ecfe055910 100644
> > > > --- a/drivers/mmc/host/Kconfig
> > > > +++ b/drivers/mmc/host/Kconfig
> > > > @@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
> > > >
> > > > config MMC_SDHCI_BRCMSTB
> > > > tristate "Broadcom SDIO/SD/MMC support"
> > > > - depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
> > > > + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
> > > > depends on MMC_SDHCI_PLTFM
> > > > select MMC_CQHCI
> > > > default ARCH_BRCMSTB || BMIPS_GENERIC
> > > > --
> > > > 2.45.2
> > > >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
2024-06-20 13:03 ` Peter Robinson
@ 2024-06-20 13:51 ` Andrea della Porta
0 siblings, 0 replies; 7+ messages in thread
From: Andrea della Porta @ 2024-06-20 13:51 UTC (permalink / raw)
To: Peter Robinson
Cc: linux-mmc, Andrea della Porta, Stefan Wahren, Adrian Hunter,
Ulf Hansson
Hi Peter,
On 14:03 Thu 20 Jun , Peter Robinson wrote:
> On Thu, 20 Jun 2024 at 13:29, Andrea della Porta <andrea.porta@suse.com> wrote:
> >
> > Hi Peter,
> >
> > On 13:22 Thu 20 Jun , Peter Robinson wrote:
> > > Hi Andrea,
> > >
> > > > On 08:42 Thu 20 Jun , Peter Robinson wrote:
> > > > > The Raspberry Pi devices have to date all used ARCH_BCM2835
> > > > > as their SoC arch dependency so configurations that use this
> > > > > and not BRCMSTB won't end up with this module in their config.
> > > >
> > > > AFAIK the BCM2712 (RPi5) is the only SoC of the Raspberry family
> > > > that has an MMC host controller that is more or less like the one
> > > > present on the STB line silicon. Adding ARCH_BCM2835 to the dependency
> > > > will then allow RPi<=4 to use this driver for which they do not
> > > > have the relevant hw.
> > >
> > > It won't use the driver due to the different compatibles, it just
> > > allows the driver to be available. The various different gens of RPi
> > > now have around 4 different types of MMC controller in use.
> >
> > True, so why make a driver available if I can't use it anyway? No other
> > SoC served by ARCH_BCM2835 have that hw, but as you said, every one of them
> > have different controllers best served by anything else but SDHCI_BRCMSTB.
>
> We, at least in Fedora, don't enable ARCH_BRCMSTB as it brings a lot
> of HW and drivers we can't support.
I see the point. It makes sense to me and after all there seems to be no
drawback except maybe including some drivers that cannot be used on all platforms,
but as you stated they wouldn't be loaded anyway unless put into devicetree.
After all those drivers will be compiled in anyway due to current default config
options, and on several platforms won't be usable still.
Thanks.
Reviewed-by: Andrea della Porta <andrea.porta@suse.com>
>
> > Thanks,
> > Andrea
> >
> > >
> > > > If I'm correct about the aforementioned point, I'd be inclined to
> > > > avoid this change, then.
> > > >
> > > > Many thanks,
> > > > Andrea
> > > >
> > > > >
> > > > > Cc: Andrea della Porta <andrea.porta@suse.com>
> > > > > Cc: Stefan Wahren <wahrenst@gmx.net>
> > > > > Cc: Adrian Hunter <adrian.hunter@intel.com>
> > > > > Cc: Ulf Hansson <ulf.hansson@linaro.org>
> > > > > Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
> > > > > Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
> > > > > ---
> > > > > drivers/mmc/host/Kconfig | 2 +-
> > > > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> > > > > index bb0d4fb0892ae..eb3ecfe055910 100644
> > > > > --- a/drivers/mmc/host/Kconfig
> > > > > +++ b/drivers/mmc/host/Kconfig
> > > > > @@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
> > > > >
> > > > > config MMC_SDHCI_BRCMSTB
> > > > > tristate "Broadcom SDIO/SD/MMC support"
> > > > > - depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
> > > > > + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
> > > > > depends on MMC_SDHCI_PLTFM
> > > > > select MMC_CQHCI
> > > > > default ARCH_BRCMSTB || BMIPS_GENERIC
> > > > > --
> > > > > 2.45.2
> > > > >
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option
2024-06-20 7:42 [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option Peter Robinson
2024-06-20 12:08 ` Andrea della Porta
@ 2024-06-20 15:14 ` Ulf Hansson
1 sibling, 0 replies; 7+ messages in thread
From: Ulf Hansson @ 2024-06-20 15:14 UTC (permalink / raw)
To: Peter Robinson
Cc: linux-mmc, Andrea della Porta, Stefan Wahren, Adrian Hunter
On Thu, 20 Jun 2024 at 09:42, Peter Robinson <pbrobinson@gmail.com> wrote:
>
> The Raspberry Pi devices have to date all used ARCH_BCM2835
> as their SoC arch dependency so configurations that use this
> and not BRCMSTB won't end up with this module in their config.
>
> Cc: Andrea della Porta <andrea.porta@suse.com>
> Cc: Stefan Wahren <wahrenst@gmx.net>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Ulf Hansson <ulf.hansson@linaro.org>
> Fixes: 40f22df5269e6 ("mmc: sdhci-brcmstb: Add BCM2712 support")
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Applied for next, thanks!
Kind regards
Uffe
> ---
> drivers/mmc/host/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> index bb0d4fb0892ae..eb3ecfe055910 100644
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -1016,7 +1016,7 @@ config MMC_SDHCI_MICROCHIP_PIC32
>
> config MMC_SDHCI_BRCMSTB
> tristate "Broadcom SDIO/SD/MMC support"
> - depends on ARCH_BRCMSTB || BMIPS_GENERIC || COMPILE_TEST
> + depends on ARCH_BRCMSTB || ARCH_BCM2835 || BMIPS_GENERIC || COMPILE_TEST
> depends on MMC_SDHCI_PLTFM
> select MMC_CQHCI
> default ARCH_BRCMSTB || BMIPS_GENERIC
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-06-20 15:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20 7:42 [PATCH] mmc: sdhci-brcmstb: Add ARCH_BCM2835 option Peter Robinson
2024-06-20 12:08 ` Andrea della Porta
2024-06-20 12:22 ` Peter Robinson
2024-06-20 12:29 ` Andrea della Porta
2024-06-20 13:03 ` Peter Robinson
2024-06-20 13:51 ` Andrea della Porta
2024-06-20 15:14 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).