Skip to content

Commit

Permalink
serial: sc16is7xx: Don't spin if no data received
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pelwell authored and popcornmix committed Oct 21, 2024
1 parent 1244625 commit 1d5b818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/serial/sc16is7xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1d5b818

Please sign in to comment.