diff options
author | Robin Gong <yibin.gong@nxp.com> | 2018-06-20 00:56:58 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 21:02:38 +0900 |
commit | fb7f1bf8d05e4f339450f3f74bd91c72ce980748 (patch) | |
tree | fdf414dbb8d65fb1db0989218d96c660d0eb84f4 /drivers/tty/serial/imx.c | |
parent | e51e597d9f692cd7d205e3b44bb35ea3b97e7329 (diff) | |
download | linux-stable-fb7f1bf8d05e4f339450f3f74bd91c72ce980748.tar.gz linux-stable-fb7f1bf8d05e4f339450f3f74bd91c72ce980748.tar.bz2 linux-stable-fb7f1bf8d05e4f339450f3f74bd91c72ce980748.zip |
tty: serial: imx: correct dma cookie status
Correct to check the right rx dma cookie status in spit of it
works because only one cookie is running in the current sdma.
But it will not once sdma driver support multi cookies
running based on virt-dma.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r-- | drivers/tty/serial/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 3f2b33ecf30a..239c0fa2e981 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1052,7 +1052,7 @@ static void imx_uart_dma_rx_callback(void *data) unsigned int r_bytes; unsigned int bd_size; - status = dmaengine_tx_status(chan, (dma_cookie_t)0, &state); + status = dmaengine_tx_status(chan, sport->rx_cookie, &state); if (status == DMA_ERROR) { imx_uart_clear_rx_errors(sport); |