mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
a1bfb6eb30
DMA RX completion handler for UART is called from a tasklet and hence may be delayed depending on the system load. In meanwhile, there may be RX timeout interrupt which can get serviced first before DMA RX completion handler is executed for the completed transfer. omap_8250_rx_dma_flush() which is called on RX timeout interrupt makes sure that the DMA RX buffer is pushed and then the FIFO is drained and also queues a new DMA request. But, when DMA RX completion handler executes, it will erroneously flush the currently queued DMA transfer which sometimes results in data corruption and double queueing of DMA RX requests. Fix this by checking whether RX completion is for the currently queued transfer or not. And also hold port lock when in DMA completion to avoid race wrt RX timeout handler preempting it. Signed-off-by: Vignesh R <vigneshr@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
8250_accent.c | ||
8250_acorn.c | ||
8250_aspeed_vuart.c | ||
8250_bcm2835aux.c | ||
8250_boca.c | ||
8250_core.c | ||
8250_dma.c | ||
8250_dw.c | ||
8250_early.c | ||
8250_em.c | ||
8250_exar_st16c554.c | ||
8250_exar.c | ||
8250_fintek.c | ||
8250_fourport.c | ||
8250_fsl.c | ||
8250_gsc.c | ||
8250_hp300.c | ||
8250_hub6.c | ||
8250_ingenic.c | ||
8250_lpc18xx.c | ||
8250_lpss.c | ||
8250_mid.c | ||
8250_moxa.c | ||
8250_mtk.c | ||
8250_of.c | ||
8250_omap.c | ||
8250_pci.c | ||
8250_pnp.c | ||
8250_port.c | ||
8250_pxa.c | ||
8250_uniphier.c | ||
8250.h | ||
Kconfig | ||
Makefile | ||
serial_cs.c |