f41db49412
- add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch: * backport upstream sdhc fixes - update to 2012.10: - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch, loadaddr-defaults.patch, mx53loco-bootscr.patch - add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch: * backport upstream sdhc fixes - update to 2012.10: - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch, loadaddr-defaults.patch, mx53loco-bootscr.patch - add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch: * backport upstream sdhc fixes - update to 2012.10: - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch, loadaddr-defaults.patch, mx53loco-bootscr.patch - add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch: * backport upstream sdhc fixes - update to 2012.10: - refresh patches 0006-ARMV7-hardfp-build-fix.patch, mlo-ext2.patch, loadaddr-defaults.patch, mx53loco-bootscr.patch - add sdhc-1.patch, sdhc-2.patch, sdhc-3.patch: * backport upstream sdhc fixes OBS-URL: https://build.opensuse.org/request/show/146560 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=8
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From: Jaehoon Chung <jh80.chung@samsung.com>
|
|
Date: Thu, 20 Sep 2012 20:31:54 +0000 (+0000)
|
|
Subject: mmc: sdhci: increase the timeout value for data transfer
|
|
X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=5d48e4224791611498456908fc23a845cc5b4ed7
|
|
|
|
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>
|
|
---
|
|
|
|
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 {
|