All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: PINCTRL_MICROCHIP_SGPIO should depend on ARCH_SPARX5 || SOC_VCOREIII
@ 2021-02-10 13:27 ` Geert Uytterhoeven
  0 siblings, 0 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2021-02-10 13:27 UTC (permalink / raw)
  To: Linus Walleij, Lars Povlsen, Steen Hegelund, Alexandre Belloni
  Cc: UNGLinuxDriver, linux-gpio, linux-arm-kernel, linux-mips,
	linux-kernel, Geert Uytterhoeven

the Microsemi/Microchip Serial GPIO device is present only Microsemi
VCore III and Microchip Sparx5 SoCs.  Hence add a dependency on
ARCH_SPARX5 || SOC_VCOREIII, to prevent asking the user about this
driver when configuring a kernel without support for these SoCs.

Fixes: 7e5ea974e61c8dd0 ("pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/pinctrl/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 113073d5f89bbf70..3b75b1d7d3d1f1b0 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -353,8 +353,8 @@ config PINCTRL_OCELOT
 
 config PINCTRL_MICROCHIP_SGPIO
 	bool "Pinctrl driver for Microsemi/Microchip Serial GPIO"
-	depends on OF
-	depends on HAS_IOMEM
+	depends on OF && HAS_IOMEM
+	depends on ARCH_SPARX5 || SOC_VCOREIII || COMPILE_TEST
 	select GPIOLIB
 	select GPIOLIB_IRQCHIP
 	select GENERIC_PINCONF
-- 
2.25.1


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

end of thread, other threads:[~2021-02-10 14:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 13:27 [PATCH] pinctrl: PINCTRL_MICROCHIP_SGPIO should depend on ARCH_SPARX5 || SOC_VCOREIII Geert Uytterhoeven
2021-02-10 13:27 ` Geert Uytterhoeven
2021-02-10 13:45 ` Lars Povlsen
2021-02-10 13:45   ` Lars Povlsen
2021-02-10 13:53   ` Geert Uytterhoeven
2021-02-10 13:53     ` Geert Uytterhoeven
2021-02-10 14:17     ` Alexandre Belloni
2021-02-10 14:17       ` Alexandre Belloni
2021-02-10 14:21       ` Geert Uytterhoeven
2021-02-10 14:21         ` Geert Uytterhoeven
2021-02-10 14:24         ` Lars Povlsen
2021-02-10 14:24           ` Lars Povlsen
2021-02-10 14:28           ` Geert Uytterhoeven
2021-02-10 14:28             ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.