summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChen Guoyin <guoyin.chen@nxp.com>2018-02-26 10:24:26 +0800
committerJi Luo <ji.luo@nxp.com>2018-08-20 21:25:42 +0800
commit61b03bbbb48762832e456f96818470d008ef404f (patch)
treebb52329f648b56f7c3a82b6563eef87a91fc7b80 /drivers
parentddaf4a9d95ce936cebe739c117d69bbb78248a32 (diff)
[iot] Enlarge the sdhc timeout for erasing system partion
Change-Id: Ia8bb6634aa00d7a5dc59a7a33845613155543eaa Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
Diffstat (limited to 'drivers')
-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 03dce3df55..671e03fdae 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -486,9 +486,9 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
/* 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);