Skip to content

Commit c1e4bc8

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
sc16is7xx: Don't spin if no data received
See: #2676 Signed-off-by: Phil Elwell <[email protected]>
1 parent 61b5050 commit c1e4bc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/tty/serial/sc16is7xx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
696696
rxlen = sc16is7xx_port_read(port, SC16IS7XX_RXLVL_REG);
697697
if (rxlen)
698698
sc16is7xx_handle_rx(port, rxlen, iir);
699+
else
700+
return false;
699701
break;
700702
case SC16IS7XX_IIR_THRI_SRC:
701703
sc16is7xx_handle_tx(port);

0 commit comments

Comments
 (0)