]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
clk: sunxi-ng: sun6i-a31: set CLK_SET_RATE_UNGATE for all PLLs
authorChen-Yu Tsai <wens@csie.org>
Thu, 15 Sep 2016 06:57:39 +0000 (14:57 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 16 Sep 2016 23:03:54 +0000 (16:03 -0700)
commitd613782cb5f2a40ef6e074dd1fa33d0abbe07c81
tree64016c060d21b7d7c72c8c911460f1e660d199cf
parentd832fdd9b2d685b8166f37c03d53b9872d77ed54
clk: sunxi-ng: sun6i-a31: set CLK_SET_RATE_UNGATE for all PLLs

The PLLs have a "lock" bit in their configuration registers which
indicate if the PLL has locked on to the requested clock rate. We
check this bit in the .set_rate op. The PLL cannot lock on if it's
not running, which might be a false positive (warning).

Set the CLK_SET_RATE_UNGATE flag for all PLLs so whenever clk_set_rate
is called on them, they get enabled and the "lock" check is really
checking the PLL.

Fixes: c6e6c96d8fa6 ("clk: sunxi-ng: Add A31/A31s clocks")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi-ng/ccu-sun6i-a31.c