mmc: increase delay between ACMD41 retries
authorYann Gautier <yann.gautier@st.com>
Fri, 16 Aug 2019 14:49:41 +0000 (16:49 +0200)
committerYann Gautier <yann.gautier@st.com>
Thu, 3 Oct 2019 09:17:31 +0000 (11:17 +0200)
In the SD Specification, Power Up Diagram of Card figure, the Timeout
value for initialization process (ACMD41 command retries) is 1 second.
Align to match MMC cards (in mmc_send_op_cond()) and Linux kernel code,
and set the delay between ACMD41 command retries to 10ms.

Change-Id: I2e07cb9944e7d7b72f2d4b13e0505e6751458091
Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers/mmc/mmc.c

index db6f3f9e47b9edbf189aba3b7db5c348ab8fb4b8..b5f6a10d38189a919e458f5727aac1447a41b9f0 100644 (file)
@@ -361,7 +361,7 @@ static int sd_send_op_cond(void)
                        return 0;
                }
 
-               mdelay(1);
+               mdelay(10);
        }
 
        ERROR("ACMD41 failed after %d retries\n", SEND_OP_COND_MAX_RETRIES);