mmc: mediatek: fix controller busy when plug out SD
authorChaotian Jing <chaotian.jing@mediatek.com>
Thu, 22 Aug 2019 06:47:40 +0000 (14:47 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
commitda6e0f7024ff92e2a68033d6b3980a047d005a85
tree015f457f62f22b185d5d1de16e5f6924151072b2
parentbb716606fffde93375a7edaa2325380f1b985e97
mmc: mediatek: fix controller busy when plug out SD

when plug out SD card, may get data CRC error, the MMC core will issue
CMD13 to get card status, then CMD13 timeout(due to card plug out) will
trigger CMD19 tuning, first CMD19 timeout has not call msdc_reset_hw()
and cause the next CMD19 gets controller busy.

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