Commit 557b7ea3 authored by Shawn Lin's avatar Shawn Lin Committed by Mark Brown

spi: rockchip: migrate to dmaengine_terminate_async

dmaengine_terminate_all is deprecated, let's use
dmaengine_terminate_async for interrupt handling.
Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ea984911
...@@ -322,12 +322,12 @@ static void rockchip_spi_handle_err(struct spi_master *master, ...@@ -322,12 +322,12 @@ static void rockchip_spi_handle_err(struct spi_master *master,
*/ */
if (rs->use_dma) { if (rs->use_dma) {
if (rs->state & RXBUSY) { if (rs->state & RXBUSY) {
dmaengine_terminate_all(rs->dma_rx.ch); dmaengine_terminate_async(rs->dma_rx.ch);
flush_fifo(rs); flush_fifo(rs);
} }
if (rs->state & TXBUSY) if (rs->state & TXBUSY)
dmaengine_terminate_all(rs->dma_tx.ch); dmaengine_terminate_async(rs->dma_tx.ch);
} }
spin_unlock_irqrestore(&rs->lock, flags); spin_unlock_irqrestore(&rs->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment