[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1482213199-29152-3-git-send-email-riteshh@codeaurora.org>
Date: Tue, 20 Dec 2016 11:23:17 +0530
From: Ritesh Harjani <riteshh@...eaurora.org>
To: ulf.hansson@...aro.org, adrian.hunter@...el.com
Cc: linux-mmc@...r.kernel.org, shawn.lin@...k-chips.com,
linux-kernel@...r.kernel.org, stummala@...eaurora.org,
georgi.djakov@...aro.org, linux-arm-msm@...r.kernel.org,
pramod.gurav@...aro.org, jeremymc@...hat.com,
venkatg@...eaurora.org, asutoshd@...eaurora.org,
Ritesh Harjani <riteshh@...eaurora.org>
Subject: [PATCH 2/4] mmc: mmc: Add change to set controller to HS400 frequency in enhanced strobe
Currently mmc_select_hs400es is not setting the desired frequency
before sending switch command. This makes CMD13 to timeout on
some controllers.
Thus add a change to set the desired HS400 frequency
in mmc_select_hs400es when the timing is switched to HS400.
Signed-off-by: Ritesh Harjani <riteshh@...eaurora.org>
---
drivers/mmc/core/mmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index b61b52f9..eb69497 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1329,6 +1329,7 @@ static int mmc_select_hs400es(struct mmc_card *card)
/* Set host controller to HS400 timing and frequency */
mmc_set_timing(host, MMC_TIMING_MMC_HS400);
+ mmc_set_bus_speed(card);
/* Controller enable enhanced strobe function */
host->ios.enhanced_strobe = true;
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.
Powered by blists - more mailing lists