Commit 253d5bdd64504a1a569b4eb330555e2449fa3d3f
Committed by
Pantelis Antoniou
1 parent
5e1c23cd39
Exists in
v2017.01-smarct4x
and in
34 other branches
mmc: fsl_esdhc: update eMMC44 adapter card erase timeout
Freescale eMMC44 adapter card uses Micron N2M400FDB311A3CF eMMC memory. According to the silicon datasheet, secure erase timeout is 600ms. So increase erase timeout value from 250ms to 600ms. Signed-off-by: Yangbo Lu <yangbo.lu@freescale.com> Cc: York Sun <yorksun@freescale.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/mmc/fsl_esdhc.c
... | ... | @@ -387,9 +387,9 @@ |
387 | 387 | |
388 | 388 | /* Workaround for ESDHC errata ENGcm03648 */ |
389 | 389 | if (!data && (cmd->resp_type & MMC_RSP_BUSY)) { |
390 | - int timeout = 2500; | |
390 | + int timeout = 6000; | |
391 | 391 | |
392 | - /* Poll on DATA0 line for cmd with busy signal for 250 ms */ | |
392 | + /* Poll on DATA0 line for cmd with busy signal for 600 ms */ | |
393 | 393 | while (timeout > 0 && !(esdhc_read32(®s->prsstat) & |
394 | 394 | PRSSTAT_DAT0)) { |
395 | 395 | udelay(100); |