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)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit18f92bc02f1739b5c4d5b70009fbb7eada45bca3
tree3949333ddbba4880c9fc4521157b4c65585da991
parent41fd4caeb00bbd6dc55f056f3e8e956697b0760d
mmc: meson-gx: make sure the descriptor is stopped on errors

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>
drivers/mmc/host/meson-gx-mmc.c