mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
e593bf5eb3
commit
9b5b8b6ee1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue