mmc: tmio: core: Add end operation into tmio_mmc_dma_ops
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 21 May 2020 07:01:04 +0000 (16:01 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Jul 2020 10:18:24 +0000 (12:18 +0200)
commit6dca9a9c0cd55d08d83c3e3c0d9913f1dd86302a
tree25fb27e50c552fd7f811bf4077e64fe616d86f1e
parent4f7872ae920fccf6a07ca64cc40792bd6be0d0d5
mmc: tmio: core: Add end operation into tmio_mmc_dma_ops

Related drivers like renesas_sdhi_internal_dmac are possible
to lack dma unmaping in error cases (for example response timeout).

Since tmio_mmc_finish_request() will be always called in any case,
to fix the issue, add end operation into struct tmio_mmc_dma_ops and
call the operation in tmio_mmc_finish_request() to call dma_ummap API
by the related drivers correctly.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1590044466-28372-2-git-send-email-yoshihiro.shimoda.uh@renesas.com
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_core.c