[PATCH] omap_hsmmc: Hack allert! Add delay in omap_hsmmc.

Juergen Kilb J.Kilb at phytec.de
Wed Jul 18 08:58:45 EDT 2012


Most of the time, a SD card was not found during probing.
This hack fixed the problem.
Further investigation needed !!

Signed-off-by: Juergen Kilb <J.Kilb at phytec.de>
---
 drivers/mci/omap_hsmmc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/mci/omap_hsmmc.c b/drivers/mci/omap_hsmmc.c
index e0b245b..125e8a4 100644
--- a/drivers/mci/omap_hsmmc.c
+++ b/drivers/mci/omap_hsmmc.c
@@ -472,6 +472,8 @@ static int mmc_send_cmd(struct mci_host *mci, struct mci_cmd *cmd,
 	writel(cmd->cmdarg, &mmc_base->arg);
 	writel((cmd->cmdidx << 24) | flags, &mmc_base->cmd);
 
+	mdelay(5); /* wait 5 ms */
+
 	start = get_time_ns();
 	do {
 		mmc_stat = readl(&mmc_base->stat);
-- 
1.7.0.4




More information about the barebox mailing list