linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Georgi Djakov <georgi.djakov@linaro.org>
To: "Ivan T. Ivanov" <ivan.ivanov@linaro.org>,
	Ulf Hansson <ulf.hansson@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>,
	Peter Griffin <peter.griffin@linaro.org>,
	linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH] mmc: sdhci: msm: Boost controller core clock
Date: Fri, 26 Jun 2015 14:34:55 +0300	[thread overview]
Message-ID: <558D38DF.1080201@linaro.org> (raw)
In-Reply-To: <1435317417-369-1-git-send-email-ivan.ivanov@linaro.org>

On 06/26/2015 02:16 PM, Ivan T. Ivanov wrote:
> 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>
> ---
>  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..b2556bc 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 falied\n");

failed?

Otherwise looks good to me.

> +
>  	ret = clk_prepare_enable(msm_host->clk);
>  	if (ret)
>  		goto pclk_disable;
> --
> 1.9.1
> 


  reply	other threads:[~2015-06-26 11:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-26 11:16 [PATCH] mmc: sdhci: msm: Boost controller core clock Ivan T. Ivanov
2015-06-26 11:34 ` Georgi Djakov [this message]
2015-06-26 11:59   ` Ivan T. Ivanov
2015-07-02  0:18 ` Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=558D38DF.1080201@linaro.org \
    --to=georgi.djakov@linaro.org \
    --cc=ivan.ivanov@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=sboyd@codeaurora.org \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).