[PATCH v3 09/15] ARM: mxs: Add clock support

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Dec 9 16:11:40 EST 2010


Hello Shawn,

On Thu, Dec 09, 2010 at 11:12:44PM +0800, Shawn Guo wrote:
> diff --git a/arch/arm/mach-mxs/clock-mx23.c b/arch/arm/mach-mxs/clock-mx23.c
> new file mode 100644
> index 0000000..b2923da
> --- /dev/null
> +++ b/arch/arm/mach-mxs/clock-mx23.c
> @@ -0,0 +1,526 @@
> +[...]
> +static int cpu_clk_set_rate(struct clk *clk, unsigned long rate)
> +{
> +[...]
> +		rate <<= PARENT_RATE_SHIFT;
> +		parent_rate <<= PARENT_RATE_SHIFT;
You're making the problem worse here.  You need to shift right!

Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list