diff options
-rw-r--r-- | drivers/tty/serial/nwpserial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tty/serial/nwpserial.c b/drivers/tty/serial/nwpserial.c index 549c70a2a63e..693bc6c2561e 100644 --- a/drivers/tty/serial/nwpserial.c +++ b/drivers/tty/serial/nwpserial.c | |||
@@ -149,7 +149,10 @@ static irqreturn_t nwpserial_interrupt(int irq, void *dev_id) | |||
149 | tty_insert_flip_char(port, ch, TTY_NORMAL); | 149 | tty_insert_flip_char(port, ch, TTY_NORMAL); |
150 | } while (dcr_read(up->dcr_host, UART_LSR) & UART_LSR_DR); | 150 | } while (dcr_read(up->dcr_host, UART_LSR) & UART_LSR_DR); |
151 | 151 | ||
152 | spin_unlock(&up->port.lock); | ||
152 | tty_flip_buffer_push(port); | 153 | tty_flip_buffer_push(port); |
154 | spin_lock(&up->port.lock); | ||
155 | |||
153 | ret = IRQ_HANDLED; | 156 | ret = IRQ_HANDLED; |
154 | 157 | ||
155 | /* clear interrupt */ | 158 | /* clear interrupt */ |