public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6/9] serial: workaround TI AR7 silicon bug
@ 2009-06-01 12:01 Florian Fainelli
  0 siblings, 0 replies; only message in thread
From: Florian Fainelli @ 2009-06-01 12:01 UTC (permalink / raw)
  To: linux-kernel, linux-serial, akpm, Alan Cox

This patch make the serial8250_console_putchar work
on TI AR7 hardware which has a hardware bug clobbering
serial characters resulting in an almost unusable
kernel console.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 03376b0..16b5a7e 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2694,7 +2694,11 @@ static void serial8250_console_putchar(struct uart_port *port, int ch)
 {
 	struct uart_8250_port *up = (struct uart_8250_port *)port;
 
+#ifdef CONFIG_AR7
+	wait_for_xmitr(up, BOTH_EMPTY);
+#else
 	wait_for_xmitr(up, UART_LSR_THRE);
+#endif
 	serial_out(up, UART_TX, ch);
 }
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-01 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-01 12:01 [PATCH 6/9] serial: workaround TI AR7 silicon bug Florian Fainelli

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