mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
hv_vuart: Avoid reporting bytes in the RX buffer when it's empty.
Signed-off-by: Pip Cet <pipcet@gmail.com>
This commit is contained in:
parent
19b16f77d8
commit
9a5707889a
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ static void update_irq(void)
|
|||
utrstat |= UTRSTAT_TXBE | UTRSTAT_TXE;
|
||||
utrstat &= ~UTRSTAT_RXD;
|
||||
|
||||
ufstat = 0;
|
||||
if ((rx_queued = iodev_can_read(vuart_iodev))) {
|
||||
utrstat |= UTRSTAT_RXD;
|
||||
if (rx_queued > 15)
|
||||
|
|
Loading…
Reference in a new issue