aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2019-08-16 16:49:41 +0200
committerYann Gautier <yann.gautier@st.com>2019-10-03 11:17:31 +0200
commit57f4b6f83974b17e0aae04e17f9d95a5659ac88b (patch)
tree635e10da897184da0a5f899ac7608ddb39c64ef9 /drivers
parent19e2af7977937b13513f448e0e162df9847b4068 (diff)
downloadtrusted-firmware-a-57f4b6f83974b17e0aae04e17f9d95a5659ac88b.tar.gz
mmc: increase delay between ACMD41 retries
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index db6f3f9e47..b5f6a10d38 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -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);