OSDN Git Service

serial: imx: Fix handling of TC irq in combination with DMA
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 2 Mar 2018 10:07:28 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 18:21:02 +0000 (10:21 -0800)
commit1866541492641c02874bf51f9d8712b5510f2c64
treefeb187466672f25f8fcf9213334eec096b2582f3
parent81ca8e8286c48df22eb798879d99aabac663b5f1
serial: imx: Fix handling of TC irq in combination with DMA

When using RS485 half duplex the Transmitter Complete irq is needed to
determine the moment when the transmitter can be disabled. When using
DMA this irq must only be enabled when DMA has completed to transfer all
data. Otherwise the CPU might busily trigger this irq which is not
properly handled and so the also pending irq for the DMA transfer cannot
trigger.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c