summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/sdhci.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2012-09-20 20:31:54 +0000
committerAndy Fleming <afleming@freescale.com>2012-10-22 02:53:36 -0500
commit5d48e4224791611498456908fc23a845cc5b4ed7 (patch)
treef01dc948b7ea84ed1fb33da506ff2f155e3abc8e /drivers/mmc/sdhci.c
parentd6b2e5085c8fe3e70f9fffd450e54efae99cbf41 (diff)
downloadtalos-obmc-uboot-5d48e4224791611498456908fc23a845cc5b4ed7.tar.gz
talos-obmc-uboot-5d48e4224791611498456908fc23a845cc5b4ed7.zip
mmc: sdhci: increase the timeout value for data transfer
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> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers/mmc/sdhci.c')
-rw-r--r--drivers/mmc/sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 2e3c408bc5..932987427c 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 {
OpenPOWER on IntegriCloud