arm:tty read data until the data buffer is empty.

Change-Id: Iaaa7c0bcb40c2cce2423c1defc14809ed6c70e9c
This commit is contained in:
Kees Jongenburger 2013-05-31 16:20:38 +02:00
parent 1d842c6a57
commit 31ad60d3f4

View File

@ -739,7 +739,7 @@ read_chars(rs232_t *rs, unsigned int status)
lsr = status;
if (lsr & UART_LSR_DR) {
while (lsr & UART_LSR_DR) {
c = serial_in(rs, OMAP3_RHR);
if (!(rs->ostate & ORAW)) {
if (c == rs->oxoff) {
@ -761,6 +761,8 @@ read_chars(rs232_t *rs, unsigned int status)
if (rs->icount == 1) {
rs->tty->tty_events = 1;
}
/* check the line status to know if there are more chars */
lsr = serial_in(rs, OMAP3_LSR);
}
}