lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200906011401.15991.florian@openwrt.org>
Date:	Mon, 1 Jun 2009 14:01:15 +0200
From:	Florian Fainelli <florian@...nwrt.org>
To:	linux-kernel@...r.kernel.org, linux-serial@...r.kernel.org,
	akpm <akpm@...ux-foundation.org>,
	Alan Cox <alan@...rguk.ukuu.org.uk>
Subject: [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.

Signed-off-by: Florian Fainelli <florian@...nwrt.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);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ