summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorJohn Keeping <jkeeping@inmusicbrands.com>2025-02-24 12:18:30 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:30:54 +0200
commit6f18079dae7b3063567f9b3331d54ab12ef97327 (patch)
treec216ed37df5cd2afb2e54b0e569090704e919750 /drivers/tty
parent9dfaf4d723c62bda8d9d1340e2e78acf0c190439 (diff)
downloadlinux-6f18079dae7b3063567f9b3331d54ab12ef97327.tar.gz
linux-6f18079dae7b3063567f9b3331d54ab12ef97327.tar.bz2
linux-6f18079dae7b3063567f9b3331d54ab12ef97327.zip
serial: 8250_dma: terminate correct DMA in tx_dma_flush()
commit a26503092c75abba70a0be2aa01145ecf90c2a22 upstream. 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") Cc: stable <stable@kernel.org> Reported-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20250224121831.1429323-1-jkeeping@inmusicbrands.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index cbaac0a5137d..47ae1fbe805b 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -148,7 +148,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)