mmc: renesas_sdhi_internal_dmac: Cannot clear the RX_IN_USE in abort
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 29 Jun 2018 10:01:45 +0000 (19:01 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 2 Jul 2018 14:13:06 +0000 (16:13 +0200)
commit25a98edd5795719c5187e16ea271e8de86e02809
tree9478577a7b5a054b84f865c7f0b7da2e9e73472d
parentfe6e04941aa12479a1a58656362bec74100bf7d7
mmc: renesas_sdhi_internal_dmac: Cannot clear the RX_IN_USE in abort

This patch is fixes an issue that the SDHI_INTERNAL_DMAC_RX_IN_USE
flag cannot be cleared because tmio_mmc_core sets the host->data
to NULL before the tmio_mmc_core calls tmio_mmc_abort_dma().

So, this patch clears the SDHI_INTERNAL_DMAC_RX_IN_USE in
the renesas_sdhi_internal_dmac_abort_dma() anyway. This doesn't
cause any side effects.

Fixes: 0cbc94daa554 ("mmc: renesas_sdhi_internal_dmac: limit DMA RX for old SoCs")
Cc: <stable@vger.kernel.org> # v4.17+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c