|
@@ -885,6 +885,8 @@ static void sci_receive_chars(struct uart_port *port)
|
|
/* Tell the rest of the system the news. New characters! */
|
|
/* Tell the rest of the system the news. New characters! */
|
|
tty_flip_buffer_push(tport);
|
|
tty_flip_buffer_push(tport);
|
|
} else {
|
|
} else {
|
|
|
|
+ /* TTY buffers full; read from RX reg to prevent lockup */
|
|
|
|
+ serial_port_in(port, SCxRDR);
|
|
serial_port_in(port, SCxSR); /* dummy read */
|
|
serial_port_in(port, SCxSR); /* dummy read */
|
|
sci_clear_SCxSR(port, SCxSR_RDxF_CLEAR(port));
|
|
sci_clear_SCxSR(port, SCxSR_RDxF_CLEAR(port));
|
|
}
|
|
}
|