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-Tag: v4.4-rc1~126^2~62 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=abc7882aacdb4b0e110026bff9b52fb783f4ebd8;p=linux-2.6-block.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; } /*