summaryrefslogtreecommitdiff
path: root/drivers/mmc/sunxi_mmc.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-15 13:50:35 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-22 12:34:55 +0100
commit5b8d7fb4fed408ae2ee77aed7773eece1ab58ec5 (patch)
tree84b1df2bba97079ec784e2c037b202d08f10cb1a /drivers/mmc/sunxi_mmc.c
parentdacc0881ac47660f8c5bc6ba6f6bbf2881f0364d (diff)
downloadu-boot-imx-5b8d7fb4fed408ae2ee77aed7773eece1ab58ec5.zip
u-boot-imx-5b8d7fb4fed408ae2ee77aed7773eece1ab58ec5.tar.gz
u-boot-imx-5b8d7fb4fed408ae2ee77aed7773eece1ab58ec5.tar.bz2
sunxi: mmc: Use a realistic timeout when sending a mmc command
Wait 1 second for the sdcard to respond, rather then waiting for 0xfffff milliseconds. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'drivers/mmc/sunxi_mmc.c')
-rw-r--r--drivers/mmc/sunxi_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index 6234981..1d484b8 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -355,7 +355,7 @@ static int mmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd,
}
}
- error = mmc_rint_wait(mmc, 0xfffff, SUNXI_MMC_RINT_COMMAND_DONE, "cmd");
+ error = mmc_rint_wait(mmc, 1000, SUNXI_MMC_RINT_COMMAND_DONE, "cmd");
if (error)
goto out;