Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed

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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Uwe Kleine-König and committed by
Shawn Guo
7c41ea57 65102238

+14 -14
+14 -14
arch/arm/Kconfig.debug
··· 1440 1440 depends on ARCH_OMAP2PLUS 1441 1441 1442 1442 config DEBUG_IMX_UART_PORT 1443 - int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \ 1444 - DEBUG_IMX25_UART || \ 1445 - DEBUG_IMX21_IMX27_UART || \ 1446 - DEBUG_IMX31_UART || \ 1447 - DEBUG_IMX35_UART || \ 1448 - DEBUG_IMX50_UART || \ 1449 - DEBUG_IMX51_UART || \ 1450 - DEBUG_IMX53_UART || \ 1451 - DEBUG_IMX6Q_UART || \ 1452 - DEBUG_IMX6SL_UART || \ 1453 - DEBUG_IMX6SX_UART || \ 1454 - DEBUG_IMX6UL_UART || \ 1455 - DEBUG_IMX7D_UART 1443 + int "i.MX Debug UART Port Selection" 1444 + depends on DEBUG_IMX1_UART || \ 1445 + DEBUG_IMX25_UART || \ 1446 + DEBUG_IMX21_IMX27_UART || \ 1447 + DEBUG_IMX31_UART || \ 1448 + DEBUG_IMX35_UART || \ 1449 + DEBUG_IMX50_UART || \ 1450 + DEBUG_IMX51_UART || \ 1451 + DEBUG_IMX53_UART || \ 1452 + DEBUG_IMX6Q_UART || \ 1453 + DEBUG_IMX6SL_UART || \ 1454 + DEBUG_IMX6SX_UART || \ 1455 + DEBUG_IMX6UL_UART || \ 1456 + DEBUG_IMX7D_UART 1456 1457 default 1 1457 - depends on ARCH_MXC 1458 1458 help 1459 1459 Choose UART port on which kernel low-level debug messages 1460 1460 should be output.