diff options
author | Mike J. Chen <mjchen@google.com> | 2011-10-18 17:58:06 -0700 |
---|---|---|
committer | Mike J. Chen <mjchen@google.com> | 2012-03-03 17:29:11 -0800 |
commit | ce2b16b2c9e0a6a16e29ee5d35fe1f8e953b3fe9 (patch) | |
tree | e1b9bdca9731497cb16b3fa753045b1ecb402e33 /drivers/mmc | |
parent | 693b3a9c204722bffe8ee022c28549632a227ed8 (diff) | |
download | uboot-ce2b16b2c9e0a6a16e29ee5d35fe1f8e953b3fe9.tar.gz |
MMC: omap: Increase erase timeout
The margin was too close on devices (typically only 1-2 seconds).
Increase the margin to 5 seconds.
Change-Id: Ibbb54dc1aa6875cc587cb5616390ebc132c73aff
Signed-off-by: Mike J. Chen <mjchen@google.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/omap_hsmmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 4bc9f57ff..cd73e99e7 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -316,7 +316,7 @@ static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, * 1000 blocks for now (1000 ms per 1 million blocks). */ if (cmd->cmdidx == MMC_CMD_ERASE) { - ulong timeout_ms = MAX_RETRY_MS; + ulong timeout_ms = MAX_RETRY_MS * 5; ulong erase_blk_cnt = last_end_value - last_start_value + 1; timeout_ms += DIV_ROUND_UP(erase_blk_cnt, 1000); printf("%s: erasing %lu blocks, timeout = %lu seconds\n", |