MA-11789 Flash system.img failed due to erasing timeout rel_imx_4.9.88_2.0.0_ga
authorguoyin.chen <guoyin.chen@nxp.com>
Sun, 22 Apr 2018 10:41:20 +0000 (18:41 +0800)
committerguoyin.chen <guoyin.chen@nxp.com>
Sun, 22 Apr 2018 10:47:11 +0000 (18:47 +0800)
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 <guoyin.chen@nxp.com>
drivers/mmc/fsl_esdhc.c

index 179b1c0..421b8b3 100644 (file)
@@ -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(&regs->prsstat) &
                                        PRSSTAT_DAT0)) {
                        udelay(100);