Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144990
b: refs/heads/master
c: 951c4df
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Krill authored and Benjamin Herrenschmidt committed May 15, 2009
1 parent 27480d2 commit a25176f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37cd8ed90fc5b11941110d2d0cea6807f86d4787
refs/heads/master: 951c4df5b7703137bf4eee002d98d083fbc890cc
4 changes: 3 additions & 1 deletion trunk/drivers/serial/nwpserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ static irqreturn_t nwpserial_interrupt(int irq, void *dev_id)
ch = dcr_read(up->dcr_host, UART_RX);
if (up->port.ignore_status_mask != NWPSERIAL_STATUS_RXVALID)
tty_insert_flip_char(tty, ch, TTY_NORMAL);
} while (dcr_read(up->dcr_host, UART_RX) & UART_LSR_DR);
} while (dcr_read(up->dcr_host, UART_LSR) & UART_LSR_DR);

tty_flip_buffer_push(tty);
ret = IRQ_HANDLED;

/* clear interrupt */
dcr_write(up->dcr_host, UART_IIR, 1);
out:
spin_unlock(&up->port.lock);
return ret;
Expand Down

0 comments on commit a25176f

Please sign in to comment.