MLK-15094 tty: serial: fsl_lpuart: check dma_tx_in_progress in callback
authorFugang Duan <fugang.duan@nxp.com>
Thu, 15 Jun 2017 08:48:31 +0000 (16:48 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:17 +0000 (15:28 -0500)
commitf40f575560d0eabd03fa1c69070964c3f7e87105
tree4daf7a7e7b3bc5cfa694c51c8b20c4da6ac11844
parentd745b34f0cd8bbc88446e610ad97aaa6b51b89c9
MLK-15094 tty: serial: fsl_lpuart: check dma_tx_in_progress in callback

There have a corner case that tx DMA .callback() is comming after
.flush_buffer(), then .callback() should check dma_tx_in_progress
flag and return in directly.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/fsl_lpuart.c