mmc: core: mmc_delay 1ms in mmc_send_op_cond

For fast boot time.

Change-Id: Ia9eb483a2112bb582c3df4ba9f346d22930a8500
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2019-09-17 18:55:00 +08:00
parent d5f6a40bd0
commit 9adb8639f1

View File

@@ -179,7 +179,7 @@ int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr)
cmd.arg = mmc_host_is_spi(host) ? 0 : ocr;
cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R3 | MMC_CMD_BCR;
for (i = 100; i; i--) {
for (i = 1000; i; i--) {
err = mmc_wait_for_cmd(host, &cmd, 0);
if (err)
break;
@@ -199,7 +199,7 @@ int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr)
err = -ETIMEDOUT;
mmc_delay(10);
mmc_delay(1);
}
if (rocr && !mmc_host_is_spi(host))