Skip to content

Commit 0d46faf

Browse files
mripardbebarino
authored andcommitted
clk: bcm2835: Don't cache the PLLB rate
The PLLB rate will be changed through the firmware clocks drivers and will change behind this drivers' back, so we don't want to cache the rate. Acked-by: Nicolas Saenz Julienne <[email protected]> Tested-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/9864daba2f584ed49aee5ed1d2f4d48507c58197.1592210452.git-series.maxime@cerno.tech Signed-off-by: Stephen Boyd <[email protected]>
1 parent b2683d0 commit 0d46faf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/clk/bcm/clk-bcm2835.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,8 @@ static const struct bcm2835_clk_desc clk_desc_array[] = {
17001700

17011701
.min_rate = 600000000u,
17021702
.max_rate = 3000000000u,
1703-
.max_fb_rate = BCM2835_MAX_FB_RATE),
1703+
.max_fb_rate = BCM2835_MAX_FB_RATE,
1704+
.flags = CLK_GET_RATE_NOCACHE),
17041705
[BCM2835_PLLB_ARM] = REGISTER_PLL_DIV(
17051706
SOC_ALL,
17061707
.name = "pllb_arm",
@@ -1710,7 +1711,7 @@ static const struct bcm2835_clk_desc clk_desc_array[] = {
17101711
.load_mask = CM_PLLB_LOADARM,
17111712
.hold_mask = CM_PLLB_HOLDARM,
17121713
.fixed_divider = 1,
1713-
.flags = CLK_SET_RATE_PARENT),
1714+
.flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE),
17141715

17151716
/*
17161717
* PLLC is the core PLL, used to drive the core VPU clock.

0 commit comments

Comments
 (0)