Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] serial: SERIAL_SUNPLUS should depend on ARCH_SUNPLUS
@ 2022-03-15 13:52 Geert Uytterhoeven
  2022-03-21 11:07 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2022-03-15 13:52 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Hammer Hsieh
  Cc: linux-serial, linux-arm-kernel, linux-kernel, Geert Uytterhoeven

Sunplus serial ports are only present on Sunplus SoCs.  Hence add a
dependency on ARCH_SUNPLUS, to prevent asking the user about this driver
when configuring a kernel without Sunplus SoC support.

Fixes: 9e8d5470325f25be ("serial: sunplus-uart: Add Sunplus SoC UART Driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/tty/serial/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index e952ec5c7a7c00a3..5551192560bb49d3 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1566,7 +1566,7 @@ config SERIAL_LITEUART_CONSOLE
 
 config SERIAL_SUNPLUS
 	tristate "Sunplus UART support"
-	depends on OF || COMPILE_TEST
+	depends on ARCH_SUNPLUS || COMPILE_TEST
 	select SERIAL_CORE
 	help
 	  Select this option if you would like to use Sunplus serial port on
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] serial: SERIAL_SUNPLUS should depend on ARCH_SUNPLUS
  2022-03-15 13:52 [PATCH] serial: SERIAL_SUNPLUS should depend on ARCH_SUNPLUS Geert Uytterhoeven
@ 2022-03-21 11:07 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2022-03-21 11:07 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Greg Kroah-Hartman, Jiri Slaby, Hammer Hsieh, linux-serial,
	linux-arm-kernel, linux-kernel

On Tue, Mar 15, 2022 at 02:52:32PM +0100, Geert Uytterhoeven wrote:
> Sunplus serial ports are only present on Sunplus SoCs.  Hence add a
> dependency on ARCH_SUNPLUS, to prevent asking the user about this driver
> when configuring a kernel without Sunplus SoC support.
> 
> Fixes: 9e8d5470325f25be ("serial: sunplus-uart: Add Sunplus SoC UART Driver")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  drivers/tty/serial/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-03-21 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-15 13:52 [PATCH] serial: SERIAL_SUNPLUS should depend on ARCH_SUNPLUS Geert Uytterhoeven
2022-03-21 11:07 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox