Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sunxi-ng: d1: Mark cpux clock as critical

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ő <szemzo.andras@gmail.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20221231231429.18357-5-samuel@sholland.org
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>

authored by

András Szemző and committed by
Jernej Skrabec
6ec1c73f f1404c72

+1 -1
+1 -1
drivers/clk/sunxi-ng/ccu-sun20i-d1.c
··· 240 240 { .hw = &pll_periph0_800M_clk.common.hw }, 241 241 }; 242 242 static SUNXI_CCU_MUX_DATA(cpux_clk, "cpux", cpux_parents, 243 - 0x500, 24, 3, CLK_SET_RATE_PARENT); 243 + 0x500, 24, 3, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL); 244 244 245 245 static const struct clk_hw *cpux_hws[] = { &cpux_clk.common.hw }; 246 246 static SUNXI_CCU_M_HWS(cpux_axi_clk, "cpux-axi",