projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e11577
)
serial: imx: also update RX stats in DMA path
author
Lucas Stach
<l.stach@pengutronix.de>
Fri, 4 Sep 2015 15:52:43 +0000
(17:52 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 17:44:29 +0000
(18:44 +0100)
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>
drivers/tty/serial/imx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/serial/imx.c
b/drivers/tty/serial/imx.c
index dcbfa5e1fb341dc36b63bff385d14b54f5e62968..8b494657eeefa01f07e58e5b996da8f9db0e8c2c 100644
(file)
--- a/
drivers/tty/serial/imx.c
+++ b/
drivers/tty/serial/imx.c
@@
-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;
}
/*