Skip to content

Commit 2949174

Browse files
pelwellpopcornmix
authored andcommitted
serial: sc16is7xx: Don't spin if no data received
There are multiple causes of interrupts, errors being one, and only the receipt of data warrants continued polling. See: #2676 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 6cce326 commit 2949174

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
@@ -821,6 +821,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
821821

822822
if (rxlen)
823823
sc16is7xx_handle_rx(port, rxlen, iir);
824+
else
825+
rc = false;
824826
break;
825827
/* CTSRTS interrupt comes only when CTS goes inactive */
826828
case SC16IS7XX_IIR_CTSRTS_SRC:

0 commit comments

Comments
 (0)