mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Revert serial 8250 console fixes
@ 2006-02-06 17:20 Kumar Gala
  2006-02-06 18:24 ` Alan Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Kumar Gala @ 2006-02-06 17:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: Russell King, alan

Revert Alan's SMP related console race fix as it breaks on some embedded
PowerPC's.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

---
commit 50c58924f3ddde690f22ef7bad122c8c279a0273
tree 13b6a0761697718fb446ddc6d12fa47de24e5ab1
parent 17ec766166ea8211717f0a97bc3db532a54a499b
author Kumar Gala <galak@kernel.crashing.org> Mon, 06 Feb 2006 11:27:48 -0600
committer Kumar Gala <galak@kernel.crashing.org> Mon, 06 Feb 2006 11:27:48 -0600

 drivers/serial/8250.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 179c1f0..141220f 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2211,7 +2211,7 @@ serial8250_console_write(struct console 
 	 *	Now, do each character
 	 */
 	for (i = 0; i < count; i++, s++) {
-		wait_for_xmitr(up, UART_LSR_THRE);
+		wait_for_xmitr(up, BOTH_EMPTY);
 
 		/*
 		 *	Send the character out.
@@ -2219,7 +2219,7 @@ serial8250_console_write(struct console 
 		 */
 		serial_out(up, UART_TX, *s);
 		if (*s == 10) {
-			wait_for_xmitr(up, UART_LSR_THRE);
+			wait_for_xmitr(up, BOTH_EMPTY);
 			serial_out(up, UART_TX, 13);
 		}
 	}
@@ -2229,7 +2229,7 @@ serial8250_console_write(struct console 
 	 *	and restore the IER
 	 */
 	wait_for_xmitr(up, BOTH_EMPTY);
-	serial_out(up, UART_IER, ier | UART_IER_THRI);
+	serial_out(up, UART_IER, ier);
 }
 
 static int serial8250_console_setup(struct console *co, char *options)




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

end of thread, other threads:[~2006-02-06 22:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 17:20 [PATCH] Revert serial 8250 console fixes Kumar Gala
2006-02-06 18:24 ` Alan Cox
2006-02-06 19:14   ` Kumar Gala
2006-02-06 19:38     ` Alan Cox
2006-02-06 20:56       ` Kumar Gala
2006-02-06 22:51         ` Alan Cox

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

all inboxes | Powered by JetHome®