OSDN Git Service

tty: serial: imx: correct dma cookie status
authorRobin Gong <yibin.gong@nxp.com>
Tue, 19 Jun 2018 16:56:58 +0000 (00:56 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:02:38 +0000 (21:02 +0900)
commitfb7f1bf8d05e4f339450f3f74bd91c72ce980748
treefdf414dbb8d65fb1db0989218d96c660d0eb84f4
parente51e597d9f692cd7d205e3b44bb35ea3b97e7329
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>
drivers/tty/serial/imx.c