Skip to content

Commit abc7882

Browse files
lynxeye-devgregkh
authored andcommitted
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 <[email protected]> Acked-by: Jiada Wang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7e11577 commit abc7882

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/imx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ static void dma_rx_callback(void *data)
918918
sport->port.icount.buf_overrun++;
919919
}
920920
tty_flip_buffer_push(port);
921+
sport->port.icount.rx += count;
921922
}
922923

923924
/*

0 commit comments

Comments
 (0)