Skip to content

Commit 37fefad

Browse files
lategoodbyestorulf
authored andcommitted
mmc: bcm2835: Terminate timeout work synchronously
It's better to make sure that the timeout work is really terminated before calling mmc_request_done. Signed-off-by: Stefan Wahren <[email protected]> Acked-by: Eric Anholt <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent af19b7c commit 37fefad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/bcm2835.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ static void bcm2835_finish_request(struct bcm2835_host *host)
597597
struct dma_chan *terminate_chan = NULL;
598598
struct mmc_request *mrq;
599599

600-
cancel_delayed_work(&host->timeout_work);
600+
cancel_delayed_work_sync(&host->timeout_work);
601601

602602
mrq = host->mrq;
603603

0 commit comments

Comments
 (0)