diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2020-05-21 16:01:06 +0900 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2020-07-13 12:18:24 +0200 |
commit | 58a91d96d0bfdcbed7f9795220e42e02ed3f2f89 (patch) | |
tree | f478c3bbdab1621cf3bd5f94f343f8a498cc28ec /drivers/mmc/host/sdhci-msm.c | |
parent | mmc: renesas_sdhi_internal_dmac: clean up the code for dma complete (diff) | |
download | linux-dev-58a91d96d0bfdcbed7f9795220e42e02ed3f2f89.tar.xz linux-dev-58a91d96d0bfdcbed7f9795220e42e02ed3f2f89.zip |
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>
Diffstat (limited to 'drivers/mmc/host/sdhci-msm.c')
0 files changed, 0 insertions, 0 deletions