mmc: tmio: abort DMA before reset
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 17 Mar 2021 09:16:20 +0000 (10:16 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:42:05 +0000 (11:42 +0200)
commitab0cdefec052825303c05687d9416bafc867fe3d
treeadf67c3026024d7dd15d44286576de59993d8600
parent08f3dff799d43bd2ec9d5e05c819ae3f253fe5cd
mmc: tmio: abort DMA before reset

We will soon allow resetting the whole IP core via a reset controller.
For this case, DMA must be terminated before the actual reset. For the
other cases, it is probably better, too.

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20210317091622.31890-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c