From: Hans de Goede Date: Thu, 15 Jan 2015 12:50:35 +0000 (+0100) Subject: sunxi: mmc: Use a realistic timeout when sending a mmc command X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5b8d7fb4fed408ae2ee77aed7773eece1ab58ec5;p=u-boot.git 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 Acked-by: Ian Campbell --- diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 623498187e..1d484b83cf 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;