]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent
authorEric Anholt <eric@anholt.net>
Wed, 1 Jun 2016 19:05:36 +0000 (12:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 11:02:12 +0000 (05:02 -0600)
commit6b207c78fe60bb56f187f3c68a9387bd082bcb3e
tree0bfa8257fcd8b7c9092bab7a3d682bc564fa606e
parent94148899cae679202a20afd70123e89172bbafff
clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent

commit 67615c588a059b731df9d019edc3c561d8006ec9 upstream.

If the firmware had set up a clock to source from PLLC, go along with
it.  But if we're looking for a new parent, we don't want to switch it
to PLLC because the firmware will force PLLC (and thus the AXI bus
clock) to different frequencies during over-temp/under-voltage,
without notification to Linux.

On my system, this moves the Linux-enabled HDMI state machine and DSI1
escape clock over to plld_per from pllc_per.  EMMC still ends up on
pllc_per, because the firmware had set it up to use that.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks")
Acked-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/bcm/clk-bcm2835.c