* [PATCH] mmc: host: Kconfig: Allow selecting MMC_SDHI_INTERNAL_DMAC for RZ/Five SoC
@ 2023-09-01 11:37 Prabhakar
2023-09-01 11:40 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Prabhakar @ 2023-09-01 11:37 UTC (permalink / raw)
To: Geert Uytterhoeven, Ulf Hansson, linux-mmc
Cc: Arnd Bergmann, linux-renesas-soc, linux-kernel, Prabhakar,
Biju Das, Lad Prabhakar
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Make MMC_SDHI_INTERNAL_DMAC visible for RISC-V architecture so that we can
select this config option for RZ/Five SoC which is based on RISC-V
architecture.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
Hi Geert/Ulf,
I was in two minds here whether I should instead add dependency for
ARCH_R9A07G043 instead of RISCV. But adding dependency for RISCV allows
us to get this config option freely for future coming RISC-V Renesas
SoCs.
Cheers, Prabhakar
---
drivers/mmc/host/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 554e67103c1a..5190881cb204 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -677,9 +677,9 @@ config MMC_SDHI_SYS_DMAC
config MMC_SDHI_INTERNAL_DMAC
tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering"
- depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || COMPILE_TEST
+ depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || RISCV || COMPILE_TEST
depends on MMC_SDHI
- default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470)
+ default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || RISCV)
help
This provides DMA support for SDHI SD/SDIO controllers
using on-chip bus mastering. This supports the controllers
--
2.34.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: host: Kconfig: Allow selecting MMC_SDHI_INTERNAL_DMAC for RZ/Five SoC
2023-09-01 11:37 [PATCH] mmc: host: Kconfig: Allow selecting MMC_SDHI_INTERNAL_DMAC for RZ/Five SoC Prabhakar
@ 2023-09-01 11:40 ` Geert Uytterhoeven
2023-09-01 11:48 ` Lad, Prabhakar
0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2023-09-01 11:40 UTC (permalink / raw)
To: Prabhakar
Cc: Ulf Hansson, linux-mmc, Arnd Bergmann, linux-renesas-soc,
linux-kernel, Biju Das, Lad Prabhakar
Hi Prabhakar,
On Fri, Sep 1, 2023 at 1:37 PM Prabhakar <prabhakar.csengg@gmail.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Make MMC_SDHI_INTERNAL_DMAC visible for RISC-V architecture so that we can
> select this config option for RZ/Five SoC which is based on RISC-V
> architecture.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thanks for your patch!
> I was in two minds here whether I should instead add dependency for
> ARCH_R9A07G043 instead of RISCV. But adding dependency for RISCV allows
> us to get this config option freely for future coming RISC-V Renesas
> SoCs.
>
> Cheers, Prabhakar
> ---
> drivers/mmc/host/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> index 554e67103c1a..5190881cb204 100644
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -677,9 +677,9 @@ config MMC_SDHI_SYS_DMAC
>
> config MMC_SDHI_INTERNAL_DMAC
> tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering"
> - depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || COMPILE_TEST
> + depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || RISCV || COMPILE_TEST
> depends on MMC_SDHI
> - default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470)
> + default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || RISCV)
This would expose this option to a growing number of non-Renesas
RISC-V platforms. What about using ARCH_RENESAS || COMPILE_TEST
instead?
> help
> This provides DMA support for SDHI SD/SDIO controllers
> using on-chip bus mastering. This supports the controllers
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] mmc: host: Kconfig: Allow selecting MMC_SDHI_INTERNAL_DMAC for RZ/Five SoC
2023-09-01 11:40 ` Geert Uytterhoeven
@ 2023-09-01 11:48 ` Lad, Prabhakar
0 siblings, 0 replies; 3+ messages in thread
From: Lad, Prabhakar @ 2023-09-01 11:48 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Ulf Hansson, linux-mmc, Arnd Bergmann, linux-renesas-soc,
linux-kernel, Biju Das, Lad Prabhakar
Hi Geert,
Thank you for the review.
On Fri, Sep 1, 2023 at 12:40 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Prabhakar,
>
> On Fri, Sep 1, 2023 at 1:37 PM Prabhakar <prabhakar.csengg@gmail.com> wrote:
> > From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
> >
> > Make MMC_SDHI_INTERNAL_DMAC visible for RISC-V architecture so that we can
> > select this config option for RZ/Five SoC which is based on RISC-V
> > architecture.
> >
> > Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> Thanks for your patch!
>
> > I was in two minds here whether I should instead add dependency for
> > ARCH_R9A07G043 instead of RISCV. But adding dependency for RISCV allows
> > us to get this config option freely for future coming RISC-V Renesas
> > SoCs.
> >
> > Cheers, Prabhakar
> > ---
> > drivers/mmc/host/Kconfig | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
> > index 554e67103c1a..5190881cb204 100644
> > --- a/drivers/mmc/host/Kconfig
> > +++ b/drivers/mmc/host/Kconfig
> > @@ -677,9 +677,9 @@ config MMC_SDHI_SYS_DMAC
> >
> > config MMC_SDHI_INTERNAL_DMAC
> > tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering"
> > - depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || COMPILE_TEST
> > + depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || RISCV || COMPILE_TEST
> > depends on MMC_SDHI
> > - default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470)
> > + default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || RISCV)
>
> This would expose this option to a growing number of non-Renesas
> RISC-V platforms. What about using ARCH_RENESAS || COMPILE_TEST
> instead?
>
Good point. I'll make the changes as per below:
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -677,9 +677,9 @@ config MMC_SDHI_SYS_DMAC
config MMC_SDHI_INTERNAL_DMAC
tristate "DMA for SDHI SD/SDIO controllers using on-chip bus mastering"
- depends on ARM64 || ARCH_R7S9210 || ARCH_R8A77470 || COMPILE_TEST
+ depends on ARCH_RENESAS || COMPILE_TEST
depends on MMC_SDHI
- default MMC_SDHI if (ARM64 || ARCH_R7S9210 || ARCH_R8A77470)
+ default MMC_SDHI if ARCH_RENESAS
help
This provides DMA support for SDHI SD/SDIO controllers
using on-chip bus mastering. This supports the controllers
Cheers,
Prabhakar
> > help
> > This provides DMA support for SDHI SD/SDIO controllers
> > using on-chip bus mastering. This supports the controllers
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-01 11:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-01 11:37 [PATCH] mmc: host: Kconfig: Allow selecting MMC_SDHI_INTERNAL_DMAC for RZ/Five SoC Prabhakar
2023-09-01 11:40 ` Geert Uytterhoeven
2023-09-01 11:48 ` Lad, Prabhakar
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®