clk: ti: Fix FAPLL parent enable bit handling
authorTony Lindgren <tony@atomide.com>
Wed, 28 Jan 2015 17:00:49 +0000 (09:00 -0800)
committerMichael Turquette <mturquette@linaro.org>
Wed, 25 Feb 2015 20:06:29 +0000 (12:06 -0800)
commit03208cc69fc16a8d46de49f51f49964666e4a694
tree08b4a61f707d891c3a3f13e192908361a736a636
parentc517d838eb7d07bbe9507871fab3931deccff539
clk: ti: Fix FAPLL parent enable bit handling

Commit 163152cbbe32 ("clk: ti: Add support for FAPLL on dm816x")
added basic support for the FAPLL on dm818x, but has a bug for the
parent PLL enable bit. The FAPLL_MAIN_PLLEN is defined as BIT(3)
but the code is doing a shift on it.

This means the parent PLL won't get disabled even if all it's child
synthesizers are disabled.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/ti/fapll.c