Re: [PATCH] spi: pl022: Fix calculate_effective_freq()

2012-04-27 Thread Grant Likely
On Thu, 26 Apr 2012 10:29:19 +0200, Linus Walleij wrote: > On Thu, Apr 19, 2012 at 11:14 AM, Viresh Kumar wrote: > > > calculate_effective_freq() was still not optimized and there were cases > > when it > > returned without error and with values of cpsr and scr as zero. > > > > Also, the varia

Re: [PATCH] spi: pl022: Fix calculate_effective_freq()

2012-04-26 Thread Linus Walleij
On Thu, Apr 19, 2012 at 11:14 AM, Viresh Kumar wrote: > calculate_effective_freq() was still not optimized and there were cases when > it > returned without error and with values of cpsr and scr as zero. > > Also, the variable named found is not used well. > > This patch targets to optimize and

Re: [PATCH] spi: pl022: Fix calculate_effective_freq()

2012-04-25 Thread Viresh Kumar
On 4/19/2012 2:44 PM, Viresh KUMAR wrote: > calculate_effective_freq() was still not optimized and there were cases when > it > returned without error and with values of cpsr and scr as zero. > > Also, the variable named found is not used well. > > This patch targets to optimize and correct this

[PATCH] spi: pl022: Fix calculate_effective_freq()

2012-04-19 Thread Viresh Kumar
calculate_effective_freq() was still not optimized and there were cases when it returned without error and with values of cpsr and scr as zero. Also, the variable named found is not used well. This patch targets to optimize and correct this routine. Tested for SPEAr. Signed-off-by: Viresh Kumar