In ns8250_putc() insert a barrier between writing the character and
checking for transmitter empty.
This commit is contained in:
parent
16283d130f
commit
4e55f7230a
@ -304,6 +304,7 @@ ns8250_putc(struct uart_bas *bas, int c)
|
||||
while ((uart_getreg(bas, REG_LSR) & LSR_THRE) == 0 && --limit)
|
||||
DELAY(delay);
|
||||
uart_setreg(bas, REG_DATA, c);
|
||||
uart_barrier(bas);
|
||||
limit = 40;
|
||||
while ((uart_getreg(bas, REG_LSR) & LSR_TEMT) == 0 && --limit)
|
||||
DELAY(delay);
|
||||
|
Loading…
Reference in New Issue
Block a user