aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Kerello <christophe.kerello@st.com>2017-10-09 17:02:28 +0200
committerTom Rini <trini@konsulko.com>2017-10-16 09:42:51 -0400
commit6c36e97be6c352d727ff8edfb681b419afcf4adb (patch)
treefff1f6a58cb47b5dd2af37342fa2282d526bd8b4
parent6c1bf6c442612135bbabe0112060c8bae86fdfbc (diff)
downloadu-boot-6c36e97be6c352d727ff8edfb681b419afcf4adb.zip
u-boot-6c36e97be6c352d727ff8edfb681b419afcf4adb.tar.gz
u-boot-6c36e97be6c352d727ff8edfb681b419afcf4adb.tar.bz2
mmc: stm32_sdmmc2: increase polling status register delay
MMC commands like MMC_CMD_ALL_SEND_CID or MMC_CMD_SEND_CSD can reach 500 us. This patch increases the polling status register delay to avoid a timeout on a command. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
-rw-r--r--drivers/mmc/stm32_sdmmc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index 0bf7135..5e43397 100644
--- a/drivers/mmc/stm32_sdmmc2.c
+++ b/drivers/mmc/stm32_sdmmc2.c
@@ -276,7 +276,7 @@ static int stm32_sdmmc2_end_cmd(struct stm32_sdmmc2_priv *priv,
/* Polling status register */
ret = readl_poll_timeout(priv->base + SDMMC_STA, status, status & mask,
- 300);
+ 10000);
if (ret < 0) {
debug("%s: timeout reading SDMMC_STA register\n", __func__);