]> Git Repo - u-boot.git/commitdiff
sunxi: mmc: Use a realistic timeout when sending a mmc command
authorHans de Goede <[email protected]>
Thu, 15 Jan 2015 12:50:35 +0000 (13:50 +0100)
committerHans de Goede <[email protected]>
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 <[email protected]>
Acked-by: Ian Campbell <[email protected]>
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;
 
This page took 0.036149 seconds and 4 git commands to generate.