[PATCH 2/23] mmc: keep resending the MMC SEND_OP_COND command
Brad Figg
brad.figg at canonical.com
Thu Aug 27 23:20:42 UTC 2009
From: Saeed Bishara <saeed at marvell.com>
Some MMC cards (SASUNG MMC micro) doesn't send response to those commands when
it still not ready.
Signed-off-by: Saeed Bishara <saeed at marvell.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
drivers/mmc/core/mmc_ops.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
index e726567..4e45c1e 100644
--- a/drivers/mmc/core/mmc_ops.c
+++ b/drivers/mmc/core/mmc_ops.c
@@ -144,6 +144,11 @@ int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr)
for (i = 100; i; i--) {
err = mmc_wait_for_cmd(host, &cmd, 0);
+ if (err == -ETIMEDOUT) {
+ mmc_delay(10);
+ continue;
+ }
+
if (err)
break;
--
1.6.0.4
More information about the kernel-team
mailing list