From b2aec6e19d4bc5b5ae6b8235e2acf565eaaf6d3f Mon Sep 17 00:00:00 2001 From: Huibin Hong Date: Thu, 28 Dec 2017 16:12:21 +0800 Subject: [PATCH] serial: 8250_dw: clear time out interrupt when in dma mode Change-Id: Iebeacce7cea7be8a71ae0dad17db5bcdeb26d52a Signed-off-by: Huibin Hong --- drivers/tty/serial/8250/8250_dw.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 4d624c1a9ed0..cdea151a32eb 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -255,7 +255,6 @@ static unsigned int dw8250_serial_in32be(struct uart_port *p, int offset) static int dw8250_handle_irq(struct uart_port *p) { - struct uart_8250_port *up = up_to_u8250p(p); struct dw8250_data *d = p->private_data; unsigned int iir = p->serial_in(p, UART_IIR); unsigned int status; @@ -267,11 +266,8 @@ static int dw8250_handle_irq(struct uart_port *p) * data available. If we see such a case then we'll do a bogus * read. If we don't do this then the "RX TIMEOUT" interrupt will * fire forever. - * - * This problem has only been observed so far when not in DMA mode - * so we limit the workaround only to non-DMA mode. */ - if (!up->dma && ((iir & 0x3f) == UART_IIR_RX_TIMEOUT)) { + if ((iir & 0x3f) == UART_IIR_RX_TIMEOUT) { spin_lock_irqsave(&p->lock, flags); status = p->serial_in(p, UART_LSR);