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 <l.stach@pengutronix.de>
Acked-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Lucas Stach 2015-09-04 17:52:43 +02:00 committed by Greg Kroah-Hartman
parent 7e11577ef6
commit abc7882aac
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
/*