]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: dw_mmc: avoid using dmaengine_terminate_all
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 9 Mar 2016 02:34:46 +0000 (10:34 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 May 2016 08:33:16 +0000 (10:33 +0200)
commitab925a315eb3c6cd9fe25ff0ca5babb94a98b55c
tree2bc1992fb80b85839790ec9578abe745f8ef9946
parent49b17858c19b94d46e3d872f85eccba45fff21f4
mmc: dw_mmc: avoid using dmaengine_terminate_all

dmaengine_terminate_all is deprecated and should be
replaced by more explicit synchronous and asynchronous
terminate functions. This change is based on the
commit b36f09c3c441 ("dmaengine: Add transfer termination
synchronization support"). Currently dw_mci_stop_dma
may be called under the spinlock, let's migrate
dmaengine_terminate_all to async terminate. This could
avoid the race condition of use-after-free resouce of
dmaengine once slave-dma driver implement the synchronize
method.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c