linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.16.18] 8250: Serial console enable Tx fix
@ 2006-05-27  1:49 Michael Hordijk
  2006-06-02 16:48 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Hordijk @ 2006-05-27  1:49 UTC (permalink / raw)
  To: rmk+serial; +Cc: linux-serial

     Enabling the Tx interrupt from console_write on buggy UART (UART_BUG_TXEN) 
breaks console transmit on said UART.  Revert to previous UART_IER restore and 
use serial8250_start_tx() to cause the transmit path to start and not hang.

Signed-off-by: Michael W. J. Hordijk <mwh13@pitt.edu>

--- linux-2.6.16.y/drivers/serial/8250.c.orig   2006-05-26 21:25:09.000116360 -0400
+++ linux-2.6.16.y/drivers/serial/8250.c        2006-05-26 21:26:54.000841539 -0400
@@ -2229,8 +2229,13 @@ serial8250_console_write(struct console
          *      and restore the IER
          */
         wait_for_xmitr(up, BOTH_EMPTY);
-       up->ier |= UART_IER_THRI;
-       serial_out(up, UART_IER, ier | UART_IER_THRI);
+       serial_out(up, UART_IER, ier);
+
+       /*
+        *      Start transmitting again in case it was clobbered racing between
+        *      console and tty output.
+        */
+       serial8250_start_tx(up);
  }

  static int serial8250_console_setup(struct console *co, char *options)

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-27  1:49 [PATCH 2.6.16.18] 8250: Serial console enable Tx fix Michael Hordijk
2006-06-02 16:48 ` Russell King

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).