Commit b76bb1bf9fd21e21006d79552e28855ac43ad43c
1 parent
5044166838
Exists in
smarc-imx_v2017.03_o8.1.0_1.3.0_8m
and in
1 other branch
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 <guoyin.chen@nxp.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/mmc/fsl_esdhc.c
... | ... | @@ -517,9 +517,9 @@ |
517 | 517 | |
518 | 518 | /* Workaround for ESDHC errata ENGcm03648 */ |
519 | 519 | if (!data && (cmd->resp_type & MMC_RSP_BUSY)) { |
520 | - int timeout = 12000; | |
520 | + int timeout = 50000; | |
521 | 521 | |
522 | - /* Poll on DATA0 line for cmd with busy signal for 1200 ms */ | |
522 | + /* Poll on DATA0 line for cmd with busy signal for 5000 ms */ | |
523 | 523 | while (timeout > 0 && !(esdhc_read32(®s->prsstat) & |
524 | 524 | PRSSTAT_DAT0)) { |
525 | 525 | udelay(100); |