linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: stanley.miao@windriver.com (stanley.miao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V5 resend 39/63] SPEAr CPU freq: Adding support for CPU Freq	framework
Date: Tue, 15 Feb 2011 17:06:08 +0800	[thread overview]
Message-ID: <4D5A4200.3000303@windriver.com> (raw)
In-Reply-To: <01612f9ae6c475b861c2f03cc24a4cb4639e01d1.1295581815.git.viresh.kumar@st.com>

Viresh Kumar wrote:
> From: Deepak Sikri <deepak.sikri@st.com>
>
> <snip>
> +
> +	newfreq = clk_round_rate(cpu_clk, spear_cpu_freq[index] * 1000);
> +	if (newfreq < 0) {
> +		pr_err("CPU Freq: clk_round_rate failed: %ld\n", newfreq);
> +		return newfreq;
> +	}
>   

clk_round_rate will call round_rate_index();
--------------------------

static int
round_rate_index(struct clk *clk, unsigned long drate, unsigned long *rate)
{
        unsigned long tmp = 0, prev_rate = 0; 
        int index;

        if (!clk->calc_rate)
                return -EFAULT;

------------------------------------------

The cpu_clk don't have calc_rate, clk_round_rate always return fault.

Stanley.

  parent reply	other threads:[~2011-02-15  9:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1295581815.git.viresh.kumar@st.com>
2011-01-21  3:53 ` [PATCH V5 resend 39/63] SPEAr CPU freq: Adding support for CPU Freq framework Viresh Kumar
2011-01-21 12:24   ` Jamie Iles
2011-02-15  9:06   ` stanley.miao [this message]
2011-02-15  9:28     ` viresh kumar

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=4D5A4200.3000303@windriver.com \
    --to=stanley.miao@windriver.com \
    --cc=linux-arm-kernel@lists.infradead.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).