public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali changing dclk frequency
@ 2018-01-30 23:23 Giulio Benetti
  2018-01-31  8:43 ` Maxime Ripard
  0 siblings, 1 reply; 13+ messages in thread
From: Giulio Benetti @ 2018-01-30 23:23 UTC (permalink / raw)
  To: linux-arm-kernel

When mali.ko is inserted, it set default clocks
and call all parent clocks to stay into range,
causing pll-video0 to change and subsequently
to change dclk to wrong frequencies.
"gpu" clock has lot of parent plls inside driver,
but on sun7i pll8-gpu does not depend on pll-video0,
pll-ve, pll-video1.
It only depends on 24Mhz main clock.

Remove all pll parents from gpu_parents_sun7i except "pll-gpu".

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
---
 drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c b/drivers/clk/sunxi-ng/ccu-sun4i-a10.c
index ffa5dac..49726a6 100644
--- a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c
+++ b/drivers/clk/sunxi-ng/ccu-sun4i-a10.c
@@ -790,9 +790,7 @@ static SUNXI_CCU_M_WITH_MUX_GATE(gpu_sun4i_clk, "gpu", gpu_parents_sun4i,
 				 0x154, 0, 4, 24, 2, BIT(31),
 				 CLK_SET_RATE_PARENT);
 
-static const char *const gpu_parents_sun7i[] = { "pll-video0", "pll-ve",
-						 "pll-ddr-other", "pll-video1",
-						 "pll-gpu" };
+static const char *const gpu_parents_sun7i[] = { "pll-gpu" };
 static const u8 gpu_table_sun7i[] = { 0, 1, 2, 3, 4 };
 static SUNXI_CCU_M_WITH_MUX_TABLE_GATE(gpu_sun7i_clk, "gpu",
 				       gpu_parents_sun7i, gpu_table_sun7i,
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-02-02 22:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 23:23 [PATCH] clk: sunxi-ng: ccu-sun4i-a10: Fix mali changing dclk frequency Giulio Benetti
2018-01-31  8:43 ` Maxime Ripard
2018-01-31 12:05   ` Giulio Benetti
2018-02-01 12:45     ` Maxime Ripard
2018-02-01 16:17       ` Giulio Benetti
2018-02-02 10:53         ` Maxime Ripard
2018-02-02 10:57           ` Giulio Benetti
2018-02-02 13:35             ` Maxime Ripard
2018-02-02 15:38               ` Giulio Benetti
2018-02-02 15:52                 ` Maxime Ripard
2018-02-02 17:21                   ` Giulio Benetti
2018-02-02 21:59                     ` Maxime Ripard
2018-02-02 22:46                       ` Giulio Benetti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox