[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1300486320-23607-2-git-send-email-lrodriguez@atheros.com>
Date: Fri, 18 Mar 2011 15:11:57 -0700
From: "Luis R. Rodriguez" <lrodriguez@...eros.com>
To: <cjb@...top.org>
CC: <linux-mmc@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<vmehta@...eros.com>, <naveen.singh@...eros.com>,
<kvalo@...rom.com>, <j@...fi>,
"Luis R. Rodriguez" <lrodriguez@...eros.com>,
Naveen Singh <nsingh@...eros.com>,
Vipin Mehta <Vipin.Mehta@...eros.com>
Subject: [RFC 1/4] sdhci: allow for multiple delays when sending commands
This is at least known to be required for the ENE 714.
Cc: Chris Ball <cjb@...top.org>
Cc: Kalle Valo <kvalo@...rom.com>
Cc: Naveen Singh <nsingh@...eros.com>
Cc: Vipin Mehta <Vipin.Mehta@...eros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@...eros.com>
---
drivers/mmc/host/sdhci.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 9e15f41..c95dfc2 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -891,8 +891,8 @@ static void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)
WARN_ON(host->cmd);
- /* Wait max 10 ms */
- timeout = 10;
+ /* Wait max this amount of ms */
+ timeout = (10*256) + 255;
mask = SDHCI_CMD_INHIBIT;
if ((cmd->data != NULL) || (cmd->flags & MMC_RSP_BUSY))
@@ -913,7 +913,8 @@ static void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)
return;
}
timeout--;
- mdelay(1);
+ if (!(timeout & 0xFF))
+ mdelay(1);
}
mod_timer(&host->timer, jiffies + 10 * HZ);
--
1.7.4.15.g7811d
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists