mmc: dw_mmc: increase timeout value in data_transfer function
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 4 Nov 2019 11:50:44 +0000 (20:50 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:48 +0000 (15:13 +0900)
Increase timeout value in data_transfer function.
1000 value is  too short to transfer data.
When it's set to 1000, it's occurred "mmc write failed" during thor
download.

In future, it needs to fix correct value.

Change-Id: I3e18eb1480fbdb33c0f8732ce271d1445568379f
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/dw_mmc.c

index 7a3ac212d74b3b12eb30f74673881afe8357b817..e0f3266e7f0be447104e51315c7fe7d054e97e8b 100644 (file)
@@ -155,7 +155,7 @@ static unsigned int dwmci_get_timeout(struct mmc *mmc, const unsigned int size)
        timeout /= mmc->bus_width;
        timeout /= mmc->ddr_mode ? 2 : 1;
        timeout *= 1000;        /* counting in msec */
-       timeout = (timeout < 1000) ? 1000 : timeout;
+       timeout = (timeout < 24000) ? 24000 : timeout;
 
        return timeout;
 }