From 6770b7eee947b0fd63ae0562a82e3497291b376f Mon Sep 17 00:00:00 2001 From: Yifeng Zhao Date: Mon, 27 Feb 2023 10:49:36 +0800 Subject: [PATCH] mmc: core: modify the power-on initialization timeout to 1 second The commit af02b05e5900 ("mmc: add thunder boot support") reduced the timeout time by mistake, which will cause mmc initialization error. Fixes: af02b05e5900 ("mmc: add thunder boot support") Signed-off-by: Yifeng Zhao Change-Id: Ie84d20104d2ea389c2369d6d1985c6dae0de054f --- drivers/mmc/core/mmc_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index db9474c9b740..dd5954acbfbe 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -179,7 +179,7 @@ int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr) cmd.arg = mmc_host_is_spi(host) ? 0 : ocr; cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R3 | MMC_CMD_BCR; - for (i = 100; i; i--) { + for (i = 1000; i; i--) { err = mmc_wait_for_cmd(host, &cmd, 0); if (err) break;