mmc: stm32_sdmmc2: increase polling status register delay
Subsystems (2)
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.
Signed-off-by Christophe Kerello <[email protected]>
Signed-off-by Patrice Chotard <[email protected]>
--- drivers/mmc/stm32_sdmmc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/stm32_sdmmc2.c +1 -1
@@ -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
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_CIDorMMC_CMD_SEND_CSDcan reach 500 us. This patch increases the polling status register delay to avoid a timeout on a command.Signed-off-by Christophe Kerello <[email protected]>Signed-off-by Patrice Chotard <[email protected]>
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>