From: Christophe Kerello Date: Mon, 9 Oct 2017 15:02:28 +0000 (+0200) Subject: mmc: stm32_sdmmc2: increase polling status register delay X-Git-Tag: v2017.11-rc2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c36e97be6c352d727ff8edfb681b419afcf4adb;p=u-boot 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 Signed-off-by: Patrice Chotard --- diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index 0bf7135b4f..5e43397f8e 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__);