serial: 8250: 8250_omap: Account for data in flight during DMA teardown
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 19 Mar 2020 11:03:40 +0000 (16:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Mar 2020 11:25:10 +0000 (12:25 +0100)
commit4bcf59a5dea0f4e768e2b84fc78ce13a7fb27863
tree81d42cbd185a617a8b36b8866b899ce1842525ed
parent7cf4df30a98175033e9849f7f16c46e96ba47f41
serial: 8250: 8250_omap: Account for data in flight during DMA teardown

Take into account data stuck in DMA internal buffers before pushing data
to higher layer. dma_tx_state has "in_flight_bytes" member that provides
this information.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20200319110344.21348-3-vigneshr@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c