summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuwei Wu <shuwei.wu@mailbox.org>2026-03-05 15:46:08 +0300
committerYixun Lan <dlan@kernel.org>2026-03-24 09:42:29 +0300
commit54e97360b44bed6b4399dd3be3d65f392df940fa (patch)
tree3cf2b992799399f8575e2f741abdc2642680f402
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f (diff)
downloadlinux-54e97360b44bed6b4399dd3be3d65f392df940fa.tar.xz
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: 1b72c59db0ad ("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>
-rw-r--r--drivers/clk/spacemit/ccu_mix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/spacemit/ccu_mix.c b/drivers/clk/spacemit/ccu_mix.c
index 9578366e9746..a8b407049bf4 100644
--- a/drivers/clk/spacemit/ccu_mix.c
+++ b/drivers/clk/spacemit/ccu_mix.c
@@ -73,7 +73,7 @@ static int ccu_mix_trigger_fc(struct clk_hw *hw)
struct ccu_common *common = hw_to_ccu_common(hw);
unsigned int val;
- if (common->reg_fc)
+ if (!common->reg_fc)
return 0;
ccu_update(common, fc, common->mask_fc, common->mask_fc);