Skip to content

Commit 9ca74c5

Browse files
author
Phil Elwell
committed
sc16is7xx: Don't spin if no data received
See: #2676 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
1 parent 36612d5 commit 9ca74c5

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
@@ -701,6 +701,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
701701
rxlen = sc16is7xx_port_read(port, SC16IS7XX_RXLVL_REG);
702702
if (rxlen)
703703
sc16is7xx_handle_rx(port, rxlen, iir);
704+
else
705+
return false;
704706
break;
705707
case SC16IS7XX_IIR_THRI_SRC:
706708
sc16is7xx_handle_tx(port);

0 commit comments

Comments
 (0)