[PATCH resend 7/7] serial: imx: also update RX stats in DMA path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux