mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail
authorChaotian Jing <chaotian.jing@mediatek.com>
Sat, 13 Oct 2018 07:20:47 +0000 (15:20 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 15 Oct 2018 13:00:29 +0000 (15:00 +0200)
commitf38a9774ddde9d79b3487dd888edd8b8623552af
tree9c2c52c78dad7efc7c291dba9ca716cb05260165
parent56f6cbbed0463f1c78d602b17c315916cc1cd238
mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail

when msdc_cmd_is_ready return fail, the req_timeout work has not been
inited and cancel_delayed_work() will return false, then, the request
return directly and never call mmc_request_done().

so need call mod_delayed_work() before msdc_cmd_is_ready()

Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c