From: Lucas Stach Date: Fri, 4 Sep 2015 15:52:43 +0000 (+0200) Subject: serial: imx: also update RX stats in DMA path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=abc7882aacdb4b0e110026bff9b52fb783f4ebd8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 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; } /*