summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/imx.c
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2015-09-04 17:52:43 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 18:44:29 +0100
commitabc7882aacdb4b0e110026bff9b52fb783f4ebd8 (patch)
tree49f7378bd877625b7fef5052a7679038191b5441 /drivers/tty/serial/imx.c
parent7e11577ef6f31faf4a505e7823bf78b679906aca (diff)
serial: imx: also update RX stats in DMA path
The RX bytecount was only updated in the PIO path and thus the device erroneously reported a value of 0 if DMA is in use. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Acked-by: Jiada Wang <jiada_wang@mentor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r--drivers/tty/serial/imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index dcbfa5e1fb34..8b494657eeef 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -918,6 +918,7 @@ static void dma_rx_callback(void *data)
sport->port.icount.buf_overrun++;
}
tty_flip_buffer_push(port);
+ sport->port.icount.rx += count;
}
/*