diff options
Diffstat (limited to 'drivers/tty/serial/mxs-auart.c')
-rw-r--r-- | drivers/tty/serial/mxs-auart.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index c33500a5e032..55fd362b9879 100644 --- a/drivers/tty/serial/mxs-auart.c +++ b/drivers/tty/serial/mxs-auart.c | |||
@@ -145,11 +145,12 @@ static inline void mxs_auart_tx_chars(struct mxs_auart_port *s) | |||
145 | writel(xmit->buf[xmit->tail], | 145 | writel(xmit->buf[xmit->tail], |
146 | s->port.membase + AUART_DATA); | 146 | s->port.membase + AUART_DATA); |
147 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); | 147 | xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); |
148 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) | ||
149 | uart_write_wakeup(&s->port); | ||
150 | } else | 148 | } else |
151 | break; | 149 | break; |
152 | } | 150 | } |
151 | if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) | ||
152 | uart_write_wakeup(&s->port); | ||
153 | |||
153 | if (uart_circ_empty(&(s->port.state->xmit))) | 154 | if (uart_circ_empty(&(s->port.state->xmit))) |
154 | writel(AUART_INTR_TXIEN, | 155 | writel(AUART_INTR_TXIEN, |
155 | s->port.membase + AUART_INTR_CLR); | 156 | s->port.membase + AUART_INTR_CLR); |