From: guoyin.chen Date: Sun, 22 Apr 2018 10:41:20 +0000 (+0800) Subject: MA-11789 Flash system.img failed due to erasing timeout X-Git-Tag: rel_imx_4.9.88_2.0.0_ga X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=b76bb1bf9fd21e21006d79552e28855ac43ad43c;p=u-boot.git MA-11789 Flash system.img failed due to erasing timeout Flash system partition with fastboot will earse the partition firstly The 1.2s timeout will fail on some SD Card. Enlarge it to 5s to make it works for most of sdcard Change-Id: I285df411c7a07025251fd19f4c8e8b549bee2421 Signed-off-by: guoyin.chen --- diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 179b1c004e..421b8b3183 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -517,9 +517,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 = 12000; + int timeout = 50000; - /* Poll on DATA0 line for cmd with busy signal for 1200 ms */ + /* Poll on DATA0 line for cmd with busy signal for 5000 ms */ while (timeout > 0 && !(esdhc_read32(®s->prsstat) & PRSSTAT_DAT0)) { udelay(100);