Skip to contentSkip to conversation

mmc: stm32_sdmmc2: increase polling status register delay

PATCH New patrice.chotard at st.com 2 participants 2 messages Oct 9, 2017 – Oct 17, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: stm32_sdmmc2: increase polling status register delay

From: Christophe Kerello <[email protected]>

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.

---
 drivers/mmc/stm32_sdmmc2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/stm32_sdmmc2.c +1 -1
index 0e1f40b..fd49d42 100644
@@ -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__);
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 mmc: stm32_sdmmc2: increase polling status register delay

Quoted 8 lines · patrice.chotard at st.com

From: Christophe Kerello <[email protected]>

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/d425fb77/attachment.sig>