Commit a2650309 authored by John Keeping's avatar John Keeping Committed by Greg Kroah-Hartman
Browse files

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: 9e512eaa ("serial: 8250: Fix fifo underflow on flush")
Cc: stable <stable@kernel.org>
Reported-by: default avatarWentao Guan <guanwentao@uniontech.com>
Signed-off-by: default avatarJohn Keeping <jkeeping@inmusicbrands.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250224121831.1429323-1-jkeeping@inmusicbrands.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d9ac5bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)