]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: bcm2835: Terminate timeout work synchronously
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 11 Nov 2018 20:23:57 +0000 (21:23 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
It's better to make sure that the timeout work is really terminated
before calling mmc_request_done.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c

index cdfc24f1093b88ba03b47b863d59e38d42f05968..a7961c391de69e5b3eb9d90e0939fc714553b76f 100644 (file)
@@ -597,7 +597,7 @@ static void bcm2835_finish_request(struct bcm2835_host *host)
        struct dma_chan *terminate_chan = NULL;
        struct mmc_request *mrq;
 
-       cancel_delayed_work(&host->timeout_work);
+       cancel_delayed_work_sync(&host->timeout_work);
 
        mrq = host->mrq;