OSDN Git Service

mmc: meson-gx: make sure the descriptor is stopped on errors
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 6 Dec 2018 15:18:25 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:19 +0000 (09:20 +0100)
commitd302bd158ce1e3b358446184133e07b0ab564f81
tree81006c3be143ca200e699fe7376f36b754cf83c9
parent7e976ccc4f0666131f1a59d01b958b3e51718084
mmc: meson-gx: make sure the descriptor is stopped on errors

[ Upstream commit 18f92bc02f1739b5c4d5b70009fbb7eada45bca3 ]

On errors, if we don't stop the descriptor chain, it may continue to
run and raise IRQ after we have called mmc_request_done(). This is bad
because we won't be able to get cmd anymore and properly deal with the
IRQ.

This patch makes sure the descriptor chain is stopped before
calling mmc_request_done()

Fixes: 79ed05e329c3 ("mmc: meson-gx: add support for descriptor chain mode")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/meson-gx-mmc.c