[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_2C47E37E3DFC481229FF3C45@qq.com>
Date: Wed, 19 Mar 2025 20:15:19 +0800
From: "Wentao Guan" <guanwentao@...ontech.com>
To: "Greg KH" <gregkh@...uxfoundation.org>
Cc: "John Keeping" <jkeeping@...usicbrands.com>, "Jiri Slaby" <jirislaby@...nel.org>, "Ferry Toth" <ftoth@...londelft.nl>, "Ilpo Järvinen" <ilpo.jarvinen@...ux.intel.com>, "linux-kernel" <linux-kernel@...r.kernel.org>, "linux-serial" <linux-serial@...r.kernel.org>
Subject: Re: [PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
Hello,
The ping query the patch state:
[PATCH] serial: 8250_dma: terminate correct DMA in tx_dma_flush()
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@...ontech.com>
Signed-off-by: John Keeping <jkeeping@...usicbrands.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
Powered by blists - more mailing lists