]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: fsl_lpuart: check dma_tx_in_progress in tx dma callback
authorFugang Duan <fugang.duan@nxp.com>
Tue, 17 Aug 2021 10:02:03 +0000 (18:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 14:05:27 +0000 (16:05 +0200)
commit09ff6cbcf0c40984df3bbe34439467618a4228d6
tree4560aea876860da77a1c43c14bafe8df0a77ba54
parenta69017275181ea5971093bf148c0e3f3903133f2
tty: serial: fsl_lpuart: check dma_tx_in_progress in tx dma callback

There have a corner case that tx DMA .callback() is coming 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>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20210817100203.21300-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c