Skip to content

Commit 1a8d68c

Browse files
johnkeepinggregkh
authored andcommitted
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 <[email protected]> Reported-by: Wentao Guan <[email protected]> Signed-off-by: John Keeping <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 52d942a commit 1a8d68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
146146
*/
147147
dma->tx_size = 0;
148148

149-
dmaengine_terminate_async(dma->rxchan);
149+
dmaengine_terminate_async(dma->txchan);
150150
}
151151

152152
int serial8250_rx_dma(struct uart_8250_port *p)

0 commit comments

Comments
 (0)