@@ -583,7 +583,7 @@ static void lpuart_flush_buffer(struct uart_port *port)
583
583
sport -> dma_tx_nents , DMA_TO_DEVICE );
584
584
sport -> dma_tx_in_progress = false;
585
585
}
586
- dmaengine_terminate_all (chan );
586
+ dmaengine_terminate_async (chan );
587
587
}
588
588
589
589
if (lpuart_is_32 (sport )) {
@@ -1327,7 +1327,7 @@ static void lpuart_dma_rx_free(struct uart_port *port)
1327
1327
struct lpuart_port , port );
1328
1328
struct dma_chan * chan = sport -> dma_rx_chan ;
1329
1329
1330
- dmaengine_terminate_all (chan );
1330
+ dmaengine_terminate_sync (chan );
1331
1331
dma_unmap_sg (chan -> device -> dev , & sport -> rx_sgl , 1 , DMA_FROM_DEVICE );
1332
1332
kfree (sport -> rx_ring .buf );
1333
1333
sport -> rx_ring .tail = 0 ;
@@ -1757,7 +1757,7 @@ static void lpuart_dma_shutdown(struct lpuart_port *sport)
1757
1757
if (wait_event_interruptible_timeout (sport -> dma_wait ,
1758
1758
!sport -> dma_tx_in_progress , msecs_to_jiffies (300 )) <= 0 ) {
1759
1759
sport -> dma_tx_in_progress = false;
1760
- dmaengine_terminate_all (sport -> dma_tx_chan );
1760
+ dmaengine_terminate_sync (sport -> dma_tx_chan );
1761
1761
}
1762
1762
sport -> lpuart_dma_tx_use = false;
1763
1763
}
@@ -2968,7 +2968,7 @@ static int lpuart_suspend(struct device *dev)
2968
2968
}
2969
2969
spin_unlock_irqrestore (& sport -> port .lock , flags );
2970
2970
sport -> dma_tx_in_progress = false;
2971
- dmaengine_terminate_all (sport -> dma_tx_chan );
2971
+ dmaengine_terminate_sync (sport -> dma_tx_chan );
2972
2972
}
2973
2973
} else if (pm_runtime_active (sport -> port .dev )) {
2974
2974
lpuart_disable_clks (sport );
0 commit comments