mmc: tmio: Fix command error processing
authorMasaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
Tue, 17 Nov 2020 13:13:37 +0000 (14:13 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Nov 2020 13:22:14 +0000 (14:22 +0100)
commit40e49564e189a81094fccac830818d6c89dde376
tree48a82b901e1dcf259f5f654b046bb5abcc8e09e5
parent854a22997ad5d6c9860a2d695c40cd4004151d5b
mmc: tmio: Fix command error processing

If some errors are detected at the same time as the access end
interrupt, the access end interrupt was not cleared. Especially with
DMA, because then the access end interrupt was never enabled and, thus,
never cleared. Clear the interrupt register always when a command error
occurs.

Signed-off-by: Masaharu Hayakawa <masaharu.hayakawa.ry@renesas.com>
[saito: rebase to v5.4]
Signed-off-by: Takeshi Saito <takeshi.saito.xv@renesas.com>
[wsa: rebase and extension of the commit message]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20201117131337.35307-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_core.c