summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorFugang Duan <b38611@freescale.com>2014-09-05 10:38:36 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-01-15 21:18:19 -0600
commite4c44154944b23066fba46bed17ab8cdf9041190 (patch)
tree5f92ecefafd22459a915ce5cb9fd98ebd3259b89 /drivers/tty/serial
parentb35f5ae5356f49aec00c801312a49d2d930460c8 (diff)
ENGR00329822-07 tty: serial: imx: add count stat. for rx dma path
Add count stat. for rx dma path. Signed-off-by: Fugang Duan <B38611@freescale.com> (cherry picked from commit 0cacf92fbbbd39680372f0eacf6b0c9e82438445)
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 716639a2653b..7defb5032781 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -909,6 +909,7 @@ static void dma_rx_push_data(struct imx_port *sport, struct tty_struct *tty,
sport->rx_buf.buf_info[i].filled = false;
sport->rx_buf.last_completed_idx++;
sport->rx_buf.last_completed_idx %= IMX_RXBD_NUM;
+ sport->port.icount.rx += sport->rx_buf.buf_info[i].rx_bytes;
}
}
}