]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
clk: bcm2835: Don't rate change PLLs on behalf of DSI PLL dividers.
authorEric Anholt <eric@anholt.net>
Tue, 17 Jan 2017 20:31:55 +0000 (07:31 +1100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 28 Aug 2017 18:30:29 +0000 (15:30 -0300)
commit254f41c93f4a7d536d28a9ab98dae82be0167fed
treefea5acea56d17d00b3c18666c65455a60d131d86
parentf03f3e6d61dd06cb66512f1b03c47dd8585460ef
clk: bcm2835: Don't rate change PLLs on behalf of DSI PLL dividers.

Our core PLLs are intended to be configured once and left alone.  With
the SET_RATE_PARENT, asking to set the PLLD_DSI1 clock rate would
change PLLD just to get closer to the requested DSI clock, thus
changing PLLD_PER, the UART and ethernet PHY clock rates downstream of
it, and breaking ethernet.

We *do* want PLLH to change so that PLLH_AUX can be exactly the value
we want, though.  Thus, we need to have a per-divider policy of
whether to pass rate changes up.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
(cherry picked from commit 55486091bd1e1c5ed28c43c0d6b3392468a9adb5)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/clk/bcm/clk-bcm2835.c