Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: dw-mid: switch to new dmaengine_terminate_* API (part 2)

The commit a3ff9582369e ("spi: dw-mid: switch to new dmaengine_terminate_*
API") converted mid_spi_dma_exit() but missed mid_spi_dma_stop().

This is follow up to convert the rest.

Fixes: a3ff9582369e ("spi: dw-mid: switch to new dmaengine_terminate_* API")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
cf1716e9 13288bdf

+2 -2
+2 -2
drivers/spi/spi-dw-mid.c
··· 274 274 static void mid_spi_dma_stop(struct dw_spi *dws) 275 275 { 276 276 if (test_bit(TX_BUSY, &dws->dma_chan_busy)) { 277 - dmaengine_terminate_all(dws->txchan); 277 + dmaengine_terminate_sync(dws->txchan); 278 278 clear_bit(TX_BUSY, &dws->dma_chan_busy); 279 279 } 280 280 if (test_bit(RX_BUSY, &dws->dma_chan_busy)) { 281 - dmaengine_terminate_all(dws->rxchan); 281 + dmaengine_terminate_sync(dws->rxchan); 282 282 clear_bit(RX_BUSY, &dws->dma_chan_busy); 283 283 } 284 284 }