mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
mmc: usdhi6rol0: use proper DMAENGINE API for termination
dmaengine_terminate_all() is deprecated in favor of explicitly saying if it should be sync or async. Here, we want dmaengine_terminate_sync() because there is no other synchronization code in the driver to handle an async case. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20210623095734.3046-4-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
492200f247
commit
29cef6d47b
@ -631,9 +631,9 @@ static void usdhi6_dma_kill(struct usdhi6_host *host)
|
||||
__func__, data->sg_len, data->blocks, data->blksz);
|
||||
/* Abort DMA */
|
||||
if (data->flags & MMC_DATA_READ)
|
||||
dmaengine_terminate_all(host->chan_rx);
|
||||
dmaengine_terminate_sync(host->chan_rx);
|
||||
else
|
||||
dmaengine_terminate_all(host->chan_tx);
|
||||
dmaengine_terminate_sync(host->chan_tx);
|
||||
}
|
||||
|
||||
static void usdhi6_dma_check_error(struct usdhi6_host *host)
|
||||
|
Loading…
Reference in New Issue
Block a user