mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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: https://github.com/raspberrypi/linux/issues/2676 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -821,6 +821,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
|
||||
|
||||
if (rxlen)
|
||||
sc16is7xx_handle_rx(port, rxlen, iir);
|
||||
else
|
||||
rc = false;
|
||||
break;
|
||||
/* CTSRTS interrupt comes only when CTS goes inactive */
|
||||
case SC16IS7XX_IIR_CTSRTS_SRC:
|
||||
|
||||
Reference in New Issue
Block a user