瀏覽代碼

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>
Hans de Goede 10 年之前
父節點
當前提交
5b8d7fb4fe
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mmc/sunxi_mmc.c

+ 1 - 1
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;