summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Guoyin <guoyin.chen@nxp.com>2018-02-26 10:24:26 +0800
committerLuo Ji <ji.luo@nxp.com>2018-07-04 12:34:00 +0800
commit16e794fa4a0c68281cc1a61f17c2fb9f5e1db066 (patch)
tree5835e3a9d3efc2f900cea1570baea945331d5e77
parent5ffdf45dd8b569816f9437b0d4bc4c56e97a73b5 (diff)
[iot] Enlarge the sdhc timeout for erasing system partion
Change-Id: Ia8bb6634aa00d7a5dc59a7a33845613155543eaa Signed-off-by: Chen Guoyin <guoyin.chen@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 15622829a2..10f8207fba 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 = 50000;
+ int timeout = 62000;
- /* Poll on DATA0 line for cmd with busy signal for 5000 ms */
+ /* Poll on DATA0 line for cmd with busy signal for 6200 ms */
while (timeout > 0 && !(esdhc_read32(&regs->prsstat) &
PRSSTAT_DAT0)) {
udelay(100);