public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
@ 2025-02-24 12:18 John Keeping
  2025-02-24 12:36 ` Wentao Guan
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: John Keeping @ 2025-02-24 12:18 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: John Keeping, Wentao Guan, Jiri Slaby, Ferry Toth,
	Ilpo Järvinen, linux-kernel, linux-serial

When flushing transmit side DMA, it is the transmit channel that should
be terminated, not the receive channel.

Fixes: 9e512eaaf8f40 ("serial: 8250: Fix fifo underflow on flush")
Reported-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
---
 drivers/tty/serial/8250/8250_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index f245a84f4a508..bdd26c9f34bdf 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -162,7 +162,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
 	 */
 	dma->tx_size = 0;
 
-	dmaengine_terminate_async(dma->rxchan);
+	dmaengine_terminate_async(dma->txchan);
 }
 
 int serial8250_rx_dma(struct uart_8250_port *p)
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-03-19 12:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 12:18 [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush() John Keeping
2025-02-24 12:36 ` Wentao Guan
2025-02-24 12:48   ` [PATCH] " Greg KH
2025-02-24 12:48   ` Greg KH
2025-02-24 13:13     ` Wentao Guan
2025-02-24 13:34       ` Greg KH
2025-02-24 16:51       ` Slade Watkins
2025-02-25 11:37         ` Wentao Guan
2025-03-19  6:14 ` Wentao Guan
2025-03-19 11:20   ` [PATCH] " Greg KH
2025-03-19 12:15     ` Wentao Guan
2025-03-19 12:21 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox