mmc: renesas_sdhi_internal_dmac: Fix dma unmapping in error cases
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 21 May 2020 07:01:06 +0000 (16:01 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Jul 2020 10:18:24 +0000 (12:18 +0200)
commit58a91d96d0bfdcbed7f9795220e42e02ed3f2f89
treef478c3bbdab1621cf3bd5f94f343f8a498cc28ec
parent2b26e34e9af3fa24fa1266e9ea2d66a1f7d62dc0
mmc: renesas_sdhi_internal_dmac: Fix dma unmapping in error cases

If this controller doesn't issue interrupt for response of command,
this driver lacks to call dma_unmap_sg(). So, fix the issue by
using end() of struct tmio_mmc_dma_ops.

Reported-by: Takeshi Saito <takeshi.saito.xv@renesas.com>
Fixes: 2a68ea7896e3 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/1590044466-28372-4-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/renesas_sdhi_internal_dmac.c