Skip to content

Commit 54e9736

Browse files
WayneWu3Yixun Lan
authored andcommitted
clk: spacemit: ccu_mix: fix inverted condition in ccu_mix_trigger_fc()
Fix inverted condition that skips frequency change trigger, causing kernel panics during cpufreq scaling. Fixes: 1b72c59 ("clk: spacemit: Add clock support for SpacemiT K1 SoC") Signed-off-by: Shuwei Wu <shuwei.wu@mailbox.org> Reviewed-by: Yixun Lan <dlan@kernel.org> Link: https://lore.kernel.org/r/20260305-k1-clk-fix-v1-1-abca85d6e266@mailbox.org Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent 6de23f8 commit 54e9736

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/spacemit/ccu_mix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static int ccu_mix_trigger_fc(struct clk_hw *hw)
7373
struct ccu_common *common = hw_to_ccu_common(hw);
7474
unsigned int val;
7575

76-
if (common->reg_fc)
76+
if (!common->reg_fc)
7777
return 0;
7878

7979
ccu_update(common, fc, common->mask_fc, common->mask_fc);

0 commit comments

Comments
 (0)