From abc7882aacdb4b0e110026bff9b52fb783f4ebd8 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 4 Sep 2015 17:52:43 +0200 Subject: 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 Acked-by: Jiada Wang Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index dcbfa5e..8b49465 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; } /* -- cgit v0.10.2