]> Git Repo - linux.git/commitdiff
clk: sunxi-ng: d1: Mark cpux clock as critical
authorAndrás Szemző <[email protected]>
Sat, 31 Dec 2022 23:14:27 +0000 (17:14 -0600)
committerJernej Skrabec <[email protected]>
Sun, 8 Jan 2023 21:06:10 +0000 (22:06 +0100)
Some SoCs in the D1 family feature ARM CPUs instead of a RISC-V CPU.
In that case, the CPUs are driven from the 'cpux' clock, so it needs
to be marked as critical, since there is no consumer when DVFS is
disabled. This matches the drivers for other SoCs, and the "riscv"
clock in this driver.

Signed-off-by: András Szemző <[email protected]>
Acked-by: Jernej Skrabec <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jernej Skrabec <[email protected]>
drivers/clk/sunxi-ng/ccu-sun20i-d1.c

index 8ef3cdeb79625b4c169fe264fee4dc408535ba20..c5a7df93602c2e2539aa95f1b93b63b1be5932ff 100644 (file)
@@ -240,7 +240,7 @@ static const struct clk_parent_data cpux_parents[] = {
        { .hw = &pll_periph0_800M_clk.common.hw },
 };
 static SUNXI_CCU_MUX_DATA(cpux_clk, "cpux", cpux_parents,
-                         0x500, 24, 3, CLK_SET_RATE_PARENT);
+                         0x500, 24, 3, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL);
 
 static const struct clk_hw *cpux_hws[] = { &cpux_clk.common.hw };
 static SUNXI_CCU_M_HWS(cpux_axi_clk, "cpux-axi",
This page took 0.061714 seconds and 4 git commands to generate.