Skip to content

Commit d028f63

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 449e10c commit d028f63

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

825825
if (rxlen)
826826
sc16is7xx_handle_rx(port, rxlen, iir);
827+
else
828+
rc = false;
827829
break;
828830
/* CTSRTS interrupt comes only when CTS goes inactive */
829831
case SC16IS7XX_IIR_CTSRTS_SRC:

0 commit comments

Comments
 (0)