serial: imx: always restart DMA if more data is available
authorLucas Stach <l.stach@pengutronix.de>
Fri, 4 Sep 2015 15:52:39 +0000 (17:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 17:42:26 +0000 (18:42 +0100)
commit976b39cd5b1d671bb2b2512b1a79fef2b210c875
tree41c11349b2cdfa70c40853f3ea515ca60aaa5e9a
parent86a04ba64295e419f442866282051777ce962b8a
serial: imx: always restart DMA if more data is available

Simplify the DMA restart logic to always queue up the next transfer
immediately if there is at least one more byte available in the FIFO,
so that the transfer will finish in a limited time.

This way the driver stops to rely on zero length transfers to signal
transfers ends. Those will go away when the idle detect DMA requests
are disabled.

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