Skip to contentSkip to conversation

serial: workaround TI AR7 silicon bug

PATCH In review Florian Fainelli 1 participant 1 message Jun 1, 2009 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 6/9 serial: workaround TI AR7 silicon bug

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.

---

drivers/serial/8250.c +4 -0
index 03376b0..16b5a7e 100644
@@ -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);
 }