소스 검색

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>
Christophe Kerello 7 년 전
부모
커밋
6c36e97be6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/mmc/stm32_sdmmc2.c

+ 1 - 1
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__);