Skip to content

Commit f85b3ee

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
sc16is7xx: Don't spin if no data received
See: #2676 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent 3fbed68 commit f85b3ee

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
@@ -678,6 +678,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
678678
rxlen = sc16is7xx_port_read(port, SC16IS7XX_RXLVL_REG);
679679
if (rxlen)
680680
sc16is7xx_handle_rx(port, rxlen, iir);
681+
else
682+
return false;
681683
break;
682684
case SC16IS7XX_IIR_THRI_SRC:
683685
sc16is7xx_handle_tx(port);

0 commit comments

Comments
 (0)