summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhang sanshan <sanshan.zhang@nxp.com>2017-11-16 15:38:11 +0800
committerzhang sanshan <sanshan.zhang@nxp.com>2017-11-16 16:03:32 +0800
commite07a7bc2a976e09f8dc028ceaf0a4b0530ee24c7 (patch)
tree123ef51ef229341b1e56a96c7e225cd800691083
parentf8d69b49c95312d54ec41d0f102e5c8f7acce552 (diff)
MA-10633 [Android] enlarge the timeout for waiting DATA0
600ms is not enough to erase erase_grp_size for some sdcard. enlarge to to 1200ms. Change-Id: Ic980794fa3064f92b479b87380e694f853f83c6a Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
-rw-r--r--drivers/mmc/fsl_esdhc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index baa67c13d2..13deee3a74 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -518,9 +518,9 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
/* Workaround for ESDHC errata ENGcm03648 */
if (!data && (cmd->resp_type & MMC_RSP_BUSY)) {
- int timeout = 6000;
+ int timeout = 12000;
- /* Poll on DATA0 line for cmd with busy signal for 600 ms */
+ /* Poll on DATA0 line for cmd with busy signal for 1200 ms */
while (timeout > 0 && !(esdhc_read32(&regs->prsstat) &
PRSSTAT_DAT0)) {
udelay(100);