MLK-17883 mmc: add delay after CMD6 before sending CMD13
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 21 Mar 2018 10:26:46 +0000 (18:26 +0800)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:45:51 +0000 (18:45 +0800)
commitb3fd0d5b3db69835f2be57a86c67d738575dd2c6
tree6a93464161d101842f04333f1955210a2c398851
parentc137fedd8de9e19fa5498cf0e5ffeafc4da5cd50
MLK-17883 mmc: add delay after CMD6 before sending CMD13

Android report data timeout issue on the Micron eMMC of i.mx8mscale
evk board. Before using CMD25 to write multi block data, driver will
use CMD6 to flush cache. But some CMD25 will get both data timeout
interrupt and transfer complete interrupt. If add delay after busy
check, and before sending CMD13, this issue gone.

We meet similar issue on Sandisk eMMC before, and already have a
commit 581925fe325a ("MLK-11685-1 mmc: add delay after CMD6 befoer
sending CMD13 for sandisk"), but when cherry-pick to 4.9 branch,
meet conflicts, put the delay in the wrong place. So meet the similar
issue again.

This patch fix this, move the dealy in the right place, right before
CMD13.

Reviewed-by: Dong Aisheng <Aisheng.dong@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
drivers/mmc/core/mmc_ops.c