linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] mmc: sdhci-msm: Boost controller core clock
@ 2015-07-06 11:53 Ivan T. Ivanov
  2015-07-20 14:21 ` Ulf Hansson
  2015-11-06  1:42 ` Bjorn Andersson
  0 siblings, 2 replies; 14+ messages in thread
From: Ivan T. Ivanov @ 2015-07-06 11:53 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Georgi Djakov, Stephen Boyd, Peter Griffin, linux-mmc,
	linux-kernel, linux-arm-msm

Ensure SDCC is working with maximum clock otherwise card
detection could be extremely slow, up to 7 seconds.

Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
Reviewed-by: Georgi Djakov <georgi.djakov@linaro.org>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
---

Changes since v0:
- s/falied/failed in warning message.

 drivers/mmc/host/sdhci-msm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index 4a09f76..4bcee03 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -489,6 +489,11 @@ static int sdhci_msm_probe(struct platform_device *pdev)
 		goto pclk_disable;
 	}

+	/* Vote for maximum clock rate for maximum performance */
+	ret = clk_set_rate(msm_host->clk, INT_MAX);
+	if (ret)
+		dev_warn(&pdev->dev, "core clock boost failed\n");
+
 	ret = clk_prepare_enable(msm_host->clk);
 	if (ret)
 		goto pclk_disable;
--
1.9.1

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-12-16 13:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06 11:53 [PATCH v2] mmc: sdhci-msm: Boost controller core clock Ivan T. Ivanov
2015-07-20 14:21 ` Ulf Hansson
2015-11-06  1:42 ` Bjorn Andersson
2015-11-06  8:10   ` Ulf Hansson
2015-11-06 23:39     ` Bjorn Andersson
2015-11-09 10:22       ` Ulf Hansson
2015-11-10 20:18         ` Stephen Boyd
2015-11-16 11:50           ` Ulf Hansson
2015-11-18  1:38             ` Stephen Boyd
2015-11-18  8:04               ` Ulf Hansson
2015-12-16 10:18           ` Ulf Hansson
2015-12-16 11:44             ` Ivan T. Ivanov
2015-12-16 13:49               ` Ulf Hansson
2015-11-09 17:09   ` Georgi Djakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).