diff mbox series

soc: renesas: Kconfig: Explicitly select GPIOLIB and PINCTRL config under SOC_RENESAS

Message ID 20220919104606.96553-1-prabhakar.mahadev-lad.rj@bp.renesas.com (mailing list archive)
State Mainlined
Commit 05b231db3c340b7a542f144158c4a5a97a90c02e
Delegated to: Geert Uytterhoeven
Headers show
Series soc: renesas: Kconfig: Explicitly select GPIOLIB and PINCTRL config under SOC_RENESAS | expand

Commit Message

Lad, Prabhakar Sept. 19, 2022, 10:46 a.m. UTC
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

GPIOLIB and PINCTRL config options are required by all ARM32/ARM64/RISC-V
Renesas SoCs, so instead of selecting them under ARCH_RENESAS for each
architecture just explicitly select them under SOC_RENESAS config option
which will be visible for all the three architectures (if ARCH_RENESAS is
enabled).

Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
Note, only when this patch is merged I'll post the patches to drop GPIOLIB
and PINCTRL from [0] and [1] to avoid bisect build failures.

[0] arch/arm64/Kconfig.platforms
[1] arch/arm/mach-shmobile/Kconfig
---
 drivers/soc/renesas/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Geert Uytterhoeven Sept. 26, 2022, 12:12 p.m. UTC | #1
On Mon, Sep 19, 2022 at 12:46 PM Prabhakar <prabhakar.csengg@gmail.com> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
>
> GPIOLIB and PINCTRL config options are required by all ARM32/ARM64/RISC-V
> Renesas SoCs, so instead of selecting them under ARCH_RENESAS for each
> architecture just explicitly select them under SOC_RENESAS config option
> which will be visible for all the three architectures (if ARCH_RENESAS is
> enabled).
>
> Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.2.

> Note, only when this patch is merged I'll post the patches to drop GPIOLIB
> and PINCTRL from [0] and [1] to avoid bisect build failures.

Great!

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

Patch

diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig
index f95a1337450d..660498252ec5 100644
--- a/drivers/soc/renesas/Kconfig
+++ b/drivers/soc/renesas/Kconfig
@@ -2,6 +2,8 @@ 
 menuconfig SOC_RENESAS
 	bool "Renesas SoC driver support" if COMPILE_TEST && !ARCH_RENESAS
 	default y if ARCH_RENESAS
+	select GPIOLIB
+	select PINCTRL
 	select SOC_BUS
 
 if SOC_RENESAS