提交 37fefade 编写于 作者: S Stefan Wahren 提交者: Ulf Hansson

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: NStefan Wahren <stefan.wahren@i2se.com>
Acked-by: NEric Anholt <eric@anholt.net>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 af19b7ce
...@@ -597,7 +597,7 @@ static void bcm2835_finish_request(struct bcm2835_host *host) ...@@ -597,7 +597,7 @@ static void bcm2835_finish_request(struct bcm2835_host *host)
struct dma_chan *terminate_chan = NULL; struct dma_chan *terminate_chan = NULL;
struct mmc_request *mrq; struct mmc_request *mrq;
cancel_delayed_work(&host->timeout_work); cancel_delayed_work_sync(&host->timeout_work);
mrq = host->mrq; mrq = host->mrq;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册