linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP
@ 2021-03-16 13:40 Geert Uytterhoeven
  2021-03-21 18:59 ` Heiko Stuebner
  2021-03-25  9:17 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2021-03-16 13:40 UTC (permalink / raw)
  To: Linus Walleij, Heiko Stuebner, Jianqun Xu
  Cc: linux-gpio, linux-rockchip, linux-arm-kernel, linux-kernel,
	Geert Uytterhoeven

The Rockchip GPIO and pin control modules are only present on Rockchip
SoCs.  Hence add a dependency on ARCH_ROCKCHIP, to prevent asking the
user about this driver when configuring a kernel without Rockchip
platform support.

Note that before, the PINCTRL_ROCKCHIP symbol was not visible, and
automatically selected when needed.  By making it tristate and
user-selectable, it became visible for everyone.

Fixes: be786ac5a6c4bf4e ("pinctrl: rockchip: make driver be tristate module")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/pinctrl/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index cfde05914abf7260..2a30b26fb30deef5 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -209,6 +209,7 @@ config PINCTRL_OXNAS
 
 config PINCTRL_ROCKCHIP
 	tristate "Rockchip gpio and pinctrl driver"
+	depends on ARCH_ROCKCHIP || COMPILE_TEST
 	depends on OF
 	select GPIOLIB
 	select PINMUX
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP
  2021-03-16 13:40 [PATCH] pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP Geert Uytterhoeven
@ 2021-03-21 18:59 ` Heiko Stuebner
  2021-03-25  9:17 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stuebner @ 2021-03-21 18:59 UTC (permalink / raw)
  To: Linus Walleij, Jianqun Xu, Geert Uytterhoeven
  Cc: linux-gpio, linux-rockchip, linux-arm-kernel, linux-kernel,
	Geert Uytterhoeven

Am Dienstag, 16. März 2021, 14:40:59 CET schrieb Geert Uytterhoeven:
> The Rockchip GPIO and pin control modules are only present on Rockchip
> SoCs.  Hence add a dependency on ARCH_ROCKCHIP, to prevent asking the
> user about this driver when configuring a kernel without Rockchip
> platform support.
> 
> Note that before, the PINCTRL_ROCKCHIP symbol was not visible, and
> automatically selected when needed.  By making it tristate and
> user-selectable, it became visible for everyone.
> 
> Fixes: be786ac5a6c4bf4e ("pinctrl: rockchip: make driver be tristate module")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Reviewed-by: Heiko Stuebner <heiko@sntech.de>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP
  2021-03-16 13:40 [PATCH] pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP Geert Uytterhoeven
  2021-03-21 18:59 ` Heiko Stuebner
@ 2021-03-25  9:17 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2021-03-25  9:17 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Heiko Stuebner, Jianqun Xu, open list:GPIO SUBSYSTEM,
	open list:ARM/Rockchip SoC...,
	Linux ARM, linux-kernel

On Tue, Mar 16, 2021 at 2:41 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> The Rockchip GPIO and pin control modules are only present on Rockchip
> SoCs.  Hence add a dependency on ARCH_ROCKCHIP, to prevent asking the
> user about this driver when configuring a kernel without Rockchip
> platform support.
>
> Note that before, the PINCTRL_ROCKCHIP symbol was not visible, and
> automatically selected when needed.  By making it tristate and
> user-selectable, it became visible for everyone.
>
> Fixes: be786ac5a6c4bf4e ("pinctrl: rockchip: make driver be tristate module")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Patch applied.

I saw this was causing issues on S390.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-25  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 13:40 [PATCH] pinctrl: PINCTRL_ROCKCHIP should depend on ARCH_ROCKCHIP Geert Uytterhoeven
2021-03-21 18:59 ` Heiko Stuebner
2021-03-25  9:17 ` Linus Walleij

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).