Skip to content

Commit

Permalink
mmc: bcm2835: Terminate timeout work synchronously
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Wahren authored and Ulf Hansson committed Dec 17, 2018
1 parent af19b7c commit 37fefad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 37fefad

Please sign in to comment.