All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
@ 2018-11-28  9:04 Uwe Kleine-König
  2018-12-05  1:20 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2018-11-28  9:04 UTC (permalink / raw)
  To: linux-arm-kernel

If debugging on i.MX is enabled DEBUG_IMX_UART_PORT defines which UART
is used for the debug output. If however debugging is off don't only
hide the then unused config item but drop it completely by using a
dependency instead of a conditional prompt.

This fixes DEBUG_IMX_UART_PORT being present in the kernel config even
if DEBUG_LL is disabled.

Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
 arch/arm/Kconfig.debug | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index d6a49f59ecd9..3f057593db01 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -1440,21 +1440,21 @@ config DEBUG_OMAP2PLUS_UART
 	depends on ARCH_OMAP2PLUS
 
 config DEBUG_IMX_UART_PORT
-	int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
-						DEBUG_IMX25_UART || \
-						DEBUG_IMX21_IMX27_UART || \
-						DEBUG_IMX31_UART || \
-						DEBUG_IMX35_UART || \
-						DEBUG_IMX50_UART || \
-						DEBUG_IMX51_UART || \
-						DEBUG_IMX53_UART || \
-						DEBUG_IMX6Q_UART || \
-						DEBUG_IMX6SL_UART || \
-						DEBUG_IMX6SX_UART || \
-						DEBUG_IMX6UL_UART || \
-						DEBUG_IMX7D_UART
+	int "i.MX Debug UART Port Selection"
+	depends on DEBUG_IMX1_UART ||
+		   DEBUG_IMX25_UART ||
+		   DEBUG_IMX21_IMX27_UART ||
+		   DEBUG_IMX31_UART ||
+		   DEBUG_IMX35_UART ||
+		   DEBUG_IMX50_UART ||
+		   DEBUG_IMX51_UART ||
+		   DEBUG_IMX53_UART ||
+		   DEBUG_IMX6Q_UART ||
+		   DEBUG_IMX6SL_UART ||
+		   DEBUG_IMX6SX_UART ||
+		   DEBUG_IMX6UL_UART ||
+		   DEBUG_IMX7D_UART
 	default 1
-	depends on ARCH_MXC
 	help
 	  Choose UART port on which kernel low-level debug messages
 	  should be output.
-- 
2.19.1

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

* Re: [PATCH] ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
  2018-11-28  9:04 [PATCH] ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed Uwe Kleine-König
@ 2018-12-05  1:20 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2018-12-05  1:20 UTC (permalink / raw)
  To: Uwe Kleine-König; +Cc: linux-arm-kernel, kernel

On Wed, Nov 28, 2018 at 10:04:16AM +0100, Uwe Kleine-König wrote:
> If debugging on i.MX is enabled DEBUG_IMX_UART_PORT defines which UART
> is used for the debug output. If however debugging is off don't only
> hide the then unused config item but drop it completely by using a
> dependency instead of a conditional prompt.
> 
> This fixes DEBUG_IMX_UART_PORT being present in the kernel config even
> if DEBUG_LL is disabled.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Applied, thanks.

_______________________________________________
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:[~2018-12-05  1:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28  9:04 [PATCH] ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed Uwe Kleine-König
2018-12-05  1:20 ` Shawn Guo

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.