From mboxrd@z Thu Jan 1 00:00:00 1970 From: viresh.kumar@st.com (viresh kumar) Date: Tue, 15 Feb 2011 14:58:01 +0530 Subject: [PATCH V5 resend 39/63] SPEAr CPU freq: Adding support for CPU Freq framework In-Reply-To: <4D5A4200.3000303@windriver.com> References: <01612f9ae6c475b861c2f03cc24a4cb4639e01d1.1295581815.git.viresh.kumar@st.com> <4D5A4200.3000303@windriver.com> Message-ID: <4D5A4721.6090602@st.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 02/15/2011 02:36 PM, stanley.miao wrote: > Viresh Kumar wrote: >> > From: Deepak Sikri >> > >> > >> > + >> > + 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