Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abc7882a authored by Lucas Stach's avatar Lucas Stach Committed by Greg Kroah-Hartman
Browse files

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: default avatarLucas Stach <l.stach@pengutronix.de>
Acked-by: default avatarJiada Wang <jiada_wang@mentor.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e11577e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}

	/*