[PATCH V5 resend 39/63] SPEAr CPU freq: Adding support for CPU Freq framework

viresh kumar viresh.kumar at st.com
Tue Feb 15 04:28:01 EST 2011


On 02/15/2011 02:36 PM, stanley.miao wrote:
> Viresh Kumar wrote:
>> > From: Deepak Sikri <deepak.sikri at 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.

I will resend this patch with this issue resolved.

-- 
viresh



More information about the linux-arm-kernel mailing list