[U-Boot] [PATCH 2/5] mmc: dw_mmc: increase cmd timeout to fix eMMC enumeration error
Alberto Panizzo
alberto at amarulasolutions.com
Wed Jul 4 19:41:24 UTC 2018
Errors are reported to happen running U-Boot after SPL kernel load failure.
In this case mmc host is not clean, and card enumeration timeouts
do happen frequently.
Signed-off-by: Alberto Panizzo <alberto at amarulasolutions.com>
---
drivers/mmc/dw_mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index 0126563..b6890d3 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -199,7 +199,7 @@ static int dwmci_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
(1 + (data ? DIV_ROUND_UP(data->blocks, 8) : 0)));
int ret = 0, flags = 0, i;
unsigned int timeout = 500;
- u32 retry = 100000;
+ u32 retry = 1000000;
u32 mask, ctrl;
ulong start = get_timer(0);
struct bounce_buffer bbstate;
--
2.7.4
More information about the U-Boot
mailing list