From: Ivan T. Ivanov Date: Mon, 6 Jul 2015 11:53:38 +0000 (+0300) Subject: mmc: sdhci-msm: Boost controller core clock X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=951b8c875ac905aa9d348c825c380e7ce66c0f62;p=deliverable%2Flinux.git mmc: sdhci-msm: Boost controller core clock Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov Reviewed-by: Georgi Djakov Acked-by: Stephen Boyd Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 4a09f7608c66..4bcee033feda 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;