serial: imx: disable TDMAEN in imx_flush_buffer()
authorDirk Behme <dirk.behme@de.bosch.com>
Tue, 9 Dec 2014 09:11:31 +0000 (18:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:23:07 +0000 (14:23 -0800)
commita2c718ce6a61f759fc47d632bcc3d8cf6b244581
treeb1e4215e429d35b9ab456d2805873a055b4eb897
parent0bbc9b81c1638f6e75c8ed423b5e6ae1a2035d79
serial: imx: disable TDMAEN in imx_flush_buffer()

Terminating the DMA, make sure the interrupt is disabled, too.
This fixes random kernel Oops due to dma_tx_call() called for
invalid transmissions.

If we disable the TDMAEN, make sure it's enabled again if a TX
DMA is started.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c