Skip to content

Commit

Permalink
sc16is7xx: Don't spin if no data received
Browse files Browse the repository at this point in the history
See: #2676

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
Phil Elwell authored and popcornmix committed Dec 14, 2018
1 parent 779857c commit d5d2814
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 @@ -678,6 +678,8 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)
rxlen = sc16is7xx_port_read(port, SC16IS7XX_RXLVL_REG);
if (rxlen)
sc16is7xx_handle_rx(port, rxlen, iir);
else
return false;
break;
case SC16IS7XX_IIR_THRI_SRC:
sc16is7xx_handle_tx(port);
Expand Down

0 comments on commit d5d2814

Please sign in to comment.