Skip to content
Snippets Groups Projects
Commit 6c36e97b authored by Christophe Kerello's avatar Christophe Kerello Committed by Tom Rini
Browse files

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: default avatarChristophe Kerello <christophe.kerello@st.com>
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
parent 6c1bf6c4
Branches
Tags
No related merge requests found
...@@ -276,7 +276,7 @@ static int stm32_sdmmc2_end_cmd(struct stm32_sdmmc2_priv *priv, ...@@ -276,7 +276,7 @@ static int stm32_sdmmc2_end_cmd(struct stm32_sdmmc2_priv *priv,
/* Polling status register */ /* Polling status register */
ret = readl_poll_timeout(priv->base + SDMMC_STA, status, status & mask, ret = readl_poll_timeout(priv->base + SDMMC_STA, status, status & mask,
300); 10000);
if (ret < 0) { if (ret < 0) {
debug("%s: timeout reading SDMMC_STA register\n", __func__); debug("%s: timeout reading SDMMC_STA register\n", __func__);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment