[U-Boot] [PATCH 1/1] mmc: stm32_sdmmc2: increase polling status register delay
patrice.chotard at st.com
patrice.chotard at st.com
Mon Oct 9 15:02:28 UTC 2017
From: Christophe Kerello <christophe.kerello at st.com>
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 at st.com>
Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---
drivers/mmc/stm32_sdmmc2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index 0e1f40b..fd49d42 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__);
--
1.9.1
More information about the U-Boot
mailing list