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@xxxxxxxxxxxxxx> Acked-by: Jiada Wang <jiada_wang@xxxxxxxxxx> --- drivers/tty/serial/imx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index e6ea7bc3c3cc..8b0260f1a711 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -911,6 +911,7 @@ static void dma_rx_callback(void *data) if (!(sport->port.ignore_status_mask & URXD_DUMMY_READ)) tty_insert_flip_string(port, sport->rx_buf, count); tty_flip_buffer_push(port); + sport->port.icount.rx += count; } /* -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html