linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled
@ 2017-11-08 21:29 H. Nikolaus Schaller
  2017-11-08 22:27 ` Tony Lindgren
  0 siblings, 1 reply; 9+ messages in thread
From: H. Nikolaus Schaller @ 2017-11-08 21:29 UTC (permalink / raw)
  To: linux-arm-kernel

commit d2b310b0234c ("ARM: debug: Use generic 8250 debug_ll for omap2 and omap3/4/5 common uarts")
commit fc23beb8a577 ("ARM: debug: Use generic 8250 debug_ll for omap3/4/5")

switched to generic 8250 debug_ll code which seems to be incompatible
with at least OMAP5 boards (OMAP5EVM, Pyra) if CONFIG_DEBUG_LL is
still enabled in some legacy defconfig. Since this is very hard to
relate to these patches and difficult to identify, let's have the
compiler emit a warning.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 arch/arm/include/debug/omap2plus.S | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S
index 192a7583999c..3e7ea21cde2a 100644
--- a/arch/arm/include/debug/omap2plus.S
+++ b/arch/arm/include/debug/omap2plus.S
@@ -12,6 +12,10 @@
 
 #include <linux/serial_reg.h>
 
+#if defined(CONFIG_DEBUG_LL)
+#warning Please disable CONFIG_DEBUG_LL and enable CONFIG_SERIAL_EARLYCON or OMAP5 devices will not boot
+#endif
+
 /* External port on Zoom2/3 */
 #define ZOOM_UART_BASE		0x10000000
 #define ZOOM_UART_VIRT		0xfa400000
-- 
2.12.2

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

end of thread, other threads:[~2017-11-09 18:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-08 21:29 [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled H. Nikolaus Schaller
2017-11-08 22:27 ` Tony Lindgren
2017-11-08 22:36   ` Russell King - ARM Linux
2017-11-08 22:38     ` Russell King - ARM Linux
2017-11-09  5:44       ` H. Nikolaus Schaller
2017-11-09 16:58         ` Russell King - ARM Linux
2017-11-09 17:16           ` H. Nikolaus Schaller
2017-11-09 17:35             ` Russell King - ARM Linux
2017-11-09 18:12               ` H. Nikolaus Schaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).