All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] mmc: stm32_sdmmc2: increase polling status register delay
@ 2017-10-09 15:02 patrice.chotard at st.com
  2017-10-17  0:47 ` [U-Boot] [U-Boot, " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: patrice.chotard at st.com @ 2017-10-09 15:02 UTC (permalink / raw)
  To: u-boot

From: Christophe Kerello <christophe.kerello@st.com>

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>
---
 drivers/mmc/stm32_sdmmc2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c
index 0e1f40b..fd49d42 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__);
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [U-Boot, 1/1] mmc: stm32_sdmmc2: increase polling status register delay
  2017-10-09 15:02 [U-Boot] [PATCH 1/1] mmc: stm32_sdmmc2: increase polling status register delay patrice.chotard at st.com
@ 2017-10-17  0:47 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2017-10-17  0:47 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 09, 2017 at 05:02:28PM +0200, patrice.chotard at st.com wrote:

> From: Christophe Kerello <christophe.kerello@st.com>
> 
> 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>

Applied to u-boot/master, thanks!

-- 
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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-17  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-09 15:02 [U-Boot] [PATCH 1/1] mmc: stm32_sdmmc2: increase polling status register delay patrice.chotard at st.com
2017-10-17  0:47 ` [U-Boot] [U-Boot, " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.