From: Jaehoon Chung Date: Mon, 4 Nov 2019 11:50:44 +0000 (+0900) Subject: mmc: dw_mmc: increase timeout value in data_transfer function X-Git-Tag: accepted/tizen/unified/20231106.171643~336 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d25a98257d0028f48c9852955f7a260e062d8f9;p=platform%2Fkernel%2Fu-boot.git mmc: dw_mmc: increase timeout value in data_transfer function 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 --- diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 5085a3b..c93f002 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -129,7 +129,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; }