diff options
author | Ivan T. Ivanov <ivan.ivanov@linaro.org> | 2015-07-06 14:53:38 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-08-17 11:32:43 +0200 |
commit | 951b8c875ac905aa9d348c825c380e7ce66c0f62 (patch) | |
tree | ea78fd095986a6477e23f718c1f683cb5ff6bf9e /drivers/mmc/host/sdhci-msm.c | |
parent | 829b6962f7e3cfc06f7c5c26269fd47ad48cf503 (diff) | |
download | linux-stable-951b8c875ac905aa9d348c825c380e7ce66c0f62.tar.gz linux-stable-951b8c875ac905aa9d348c825c380e7ce66c0f62.tar.bz2 linux-stable-951b8c875ac905aa9d348c825c380e7ce66c0f62.zip |
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 <ivan.ivanov@linaro.org>
Reviewed-by: Georgi Djakov <georgi.djakov@linaro.org>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-msm.c')
-rw-r--r-- | drivers/mmc/host/sdhci-msm.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |