From: Kumar Gala Date: Wed, 8 Feb 2006 21:34:35 +0000 (+0000) Subject: [SERIAL] 8250 serial console update uart_8250_port ier X-Git-Tag: v2.6.16-rc3~55^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f5968b37b3ad35b682b574b578843a0361218aff;p=linux-2.6-omap-h63xx.git [SERIAL] 8250 serial console update uart_8250_port ier On some embedded PowerPC (MPC834x) systems an extra byte would some times be required to flush data out of the fifo. serial8250_console_write() was updating the IER in hardware without also updating the copy in uart_8250_port. This causes issues functions like serial8250_start_tx() and __stop_tx() to misbehave. Signed-off-by: Kumar Gala Signed-off-by: Russell King --- diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 179c1f065e6..b1fc97d5f64 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c @@ -2229,6 +2229,7 @@ serial8250_console_write(struct console *co, const char *s, unsigned int count) * and restore the IER */ wait_for_xmitr(up, BOTH_EMPTY); + up->ier |= UART_IER_THRI; serial_out(up, UART_IER, ier | UART_IER_THRI); }