public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] mmc: sdhci: increase the timeout value for data transfer
@ 2012-09-21  6:31 Jaehoon Chung
  2012-09-21  9:48 ` Rommel Custodio
  0 siblings, 1 reply; 7+ messages in thread
From: Jaehoon Chung @ 2012-09-21  6:31 UTC (permalink / raw)
  To: u-boot

Timeout value is tunable.
When run read/write operation, sometime returned the timeout error.
Because the timeout value is too short.
So increased the enough timeout value.
(This timeout value is used to prevent the infinite loop.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/mmc/sdhci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 2e3c408..9329874 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -83,7 +83,7 @@ static int sdhci_transfer_data(struct sdhci_host *host, struct mmc_data *data,
 {
 	unsigned int stat, rdy, mask, timeout, block = 0;
 
-	timeout = 10000;
+	timeout = 1000000;
 	rdy = SDHCI_INT_SPACE_AVAIL | SDHCI_INT_DATA_AVAIL;
 	mask = SDHCI_DATA_AVAILABLE | SDHCI_SPACE_AVAILABLE;
 	do {
-- 
1.7.4.1

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

end of thread, other threads:[~2012-09-25  1:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21  6:31 [U-Boot] [PATCH 1/3] mmc: sdhci: increase the timeout value for data transfer Jaehoon Chung
2012-09-21  9:48 ` Rommel Custodio
2012-09-24  1:32   ` Jaehoon Chung
2012-09-24  2:34     ` Rommel Custodio
2012-09-24  5:23       ` Jaehoon Chung
2012-09-24 19:57         ` Mela Custodio
2012-09-25  1:33           ` Jaehoon Chung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox