summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-04 00:09:52 (GMT)
committerTom Rini <trini@konsulko.com>2016-03-15 19:13:05 (GMT)
commit9b5b8b6ee19de9b6c1a701e8e6faa16ffe951a58 (patch)
treecaad2663187b1d473856ea7be7f855c59e3b75df
parente593bf5eb36669a5f8a55271eb8c14cb4cf93961 (diff)
downloadu-boot-9b5b8b6ee19de9b6c1a701e8e6faa16ffe951a58.tar.xz
dwmmc: Increase retry timeout
When enable dcache on HiKey, we're running into MMC command timeouts because our retry loop is now faster than the eMMC (or an external SD card) can answer. Increase the retry count to the same as the timeout value for status reports. The real fix is obviously to not base this whole thing on a cycle counter but on real wall time, but that would be slightly more intrusive. Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--drivers/mmc/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 909e3ca..7329f40 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -189,7 +189,7 @@ static int dwmci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
data ? DIV_ROUND_UP(data->blocks, 8) : 0);
int ret = 0, flags = 0, i;
unsigned int timeout = 100000;
- u32 retry = 10000;
+ u32 retry = 100000;
u32 mask, ctrl;
ulong start = get_timer(0);
struct bounce_buffer bbstate;