mmc: mediatek: fix CMD21/CMD19 timeout issue
authorChaotian Jing <chaotian.jing@mediatek.com>
Thu, 30 Jun 2016 02:01:00 +0000 (10:01 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:32 +0000 (10:34 +0200)
commitddc713878f445b68626d10aa190139908426eb91
treed4423bed6da42e85441eaafeda806d94c7632e1e
parent86beac370481882550e1f3904a5af44a5f9ea395
mmc: mediatek: fix CMD21/CMD19 timeout issue

we did not deal with the read data of CMD21/CMD19 if there is
response CRC error of CMD21/CMD19, in this case, eMMC/SD may
still in send-data state. therefore, all of next commands cannot
get response as device is not in transfer state.

for resolving this issue, still need deal with the data receive
to make device back to transfer state.

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