mmc: sdhci: increase the timeout value for data transfer
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 20 Sep 2012 20:31:54 +0000 (20:31 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 22 Oct 2012 07:53:36 +0000 (02:53 -0500)
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>
drivers/mmc/sdhci.c

index 2e3c408bc55ab2a0d50b07a88d676fe1d70f135c..932987427c3d60c79a3a3f63f914f412bd43cc6f 100644 (file)
@@ -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 {