From: Alberto Panizzo Date: Wed, 4 Jul 2018 21:41:24 +0200 Subject: [U-Boot] [PATCH 2/5] mmc: dw_mmc: increase cmd timeout to fix eMMC enumeration error In-Reply-To: <1530733294-20294-1-git-send-email-alberto@amarulasolutions.com> References: <1530733294-20294-1-git-send-email-alberto@amarulasolutions.com> Message-ID: <1530733294-20294-3-git-send-email-alberto@amarulasolutions.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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