]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:20:47 +0000 (14:20 -0300)
commitd425c3bd42b7f41721772bc9f23c8e0e22b75c79
treea44eb880cb8ba9f44944ffa92fbca9a7d38523ca
parent3b788b1c3cabbcf38d5844009e4b721e7012a45c
mmc: mediatek: fix cannot receive new request when msdc_cmd_is_ready fail

BugLink: https://bugs.launchpad.net/bugs/1854975
[ Upstream commit f38a9774ddde9d79b3487dd888edd8b8623552af ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/mmc/host/mtk-sd.c