]> git.sur5r.net Git - u-boot/commitdiff
sunxi: mmc: Use a realistic timeout when sending a mmc command
authorHans de Goede <hdegoede@redhat.com>
Thu, 15 Jan 2015 12:50:35 +0000 (13:50 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 22 Jan 2015 11:34:55 +0000 (12:34 +0100)
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>
drivers/mmc/sunxi_mmc.c

index 623498187ef0255e6fd5a647819a7bdf4477f8e3..1d484b83cf0309ccb9218d4db10f37454419224c 100644 (file)
@@ -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;