All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: GPIO_MXS should not default to y, unconditionally
@ 2021-02-08 14:51 Geert Uytterhoeven
  2021-02-10 13:25 ` Bartosz Golaszewski
  2021-02-12 12:53 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2021-02-08 14:51 UTC (permalink / raw)
  To: Anson Huang, Shawn Guo, Sascha Hauer, Linus Walleij, Bartosz Golaszewski
  Cc: Fabio Estevam, Pengutronix Kernel Team, NXP Linux Team,
	linux-gpio, linux-kernel, Geert Uytterhoeven

Merely enabling CONFIG_COMPILE_TEST should not enable additional code.
To fix this, restrict the automatic enabling of GPIO_MXS to ARCH_MXS,
and ask the user in case of compile-testing.

Fixes: 6876ca311bfca5d7 ("gpio: mxs: add COMPILE_TEST support for GPIO_MXS")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/gpio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 5fdf526fe973da38..412728ff2ab45c0d 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -442,8 +442,9 @@ config GPIO_MXC
 	select GENERIC_IRQ_CHIP
 
 config GPIO_MXS
-	def_bool y
+	bool "Freescale MXS GPIO support" if COMPILE_TEST
 	depends on ARCH_MXS || COMPILE_TEST
+	default y if ARCH_MXS
 	select GPIO_GENERIC
 	select GENERIC_IRQ_CHIP
 
-- 
2.25.1


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

end of thread, other threads:[~2021-02-12 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 14:51 [PATCH] gpio: GPIO_MXS should not default to y, unconditionally Geert Uytterhoeven
2021-02-10 13:25 ` Bartosz Golaszewski
2021-02-12 12:53 ` Linus Walleij

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.