From: Yixun Lan <dlan@kernel.org>
To: u-boot@lists.u-boot-project.org
Cc: spacemit@lists.linux.dev, u-boot-spacemit@groups.io,
Lukasz Majewski <lukma@denx.de>, Tom Rini <trini@konsulko.com>,
Junhui Liu <junhui.liu@pigmoral.tech>,
Raymond Mao <raymond.mao@riscstar.com>,
Guodong Xu <guodong.xu@oss.qualcomm.com>,
Peng Fan <peng.fan@nxp.com>, Torsten Duwe <duwe@suse.de>,
Ryan Chen <ryan_chen@aspeedtech.com>,
Jonas Karlman <jonas@kwiboo.se>,
Alexey Charkov <alchark@flipper.net>,
Yixun Lan <dlan@kernel.org>
Subject: [PATCH 1/8] clk: spacemit: ccu_mix: fix inverted condition in ccu_mix_trigger_fc()
Date: Tue, 25 Aug 2026 04:24:11 +0000 [thread overview]
Message-ID: <20260825-01-k3-clock-reset-support-v1-1-c430253e759c@kernel.org> (raw)
In-Reply-To: <20260825-01-k3-clock-reset-support-v1-0-c430253e759c@kernel.org>
Based on upstream commit:
54e97360b44b ("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.
Signed-off-by: Yixun Lan <dlan@kernel.org>
---
drivers/clk/spacemit/clk_mix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/spacemit/clk_mix.c b/drivers/clk/spacemit/clk_mix.c
index a1158512a92..45bf2c72375 100644
--- a/drivers/clk/spacemit/clk_mix.c
+++ b/drivers/clk/spacemit/clk_mix.c
@@ -78,7 +78,7 @@ static int ccu_mix_trigger_fc(struct clk *clk)
struct ccu_common *common = clk_to_ccu_common(clk);
unsigned int val;
- if (common->reg_fc)
+ if (!common->reg_fc)
return 0;
ccu_update(common, fc, common->mask_fc, common->mask_fc);
--
2.55.0
next prev parent reply other threads:[~2026-08-25 4:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 4:24 [PATCH 0/8] spacemit: k3: add clock and reset support Yixun Lan
2026-08-25 4:24 ` Yixun Lan [this message]
2026-08-25 4:24 ` [PATCH 2/8] clk: spacemit: ccu_mix: add inverted enable gate clock Yixun Lan
2026-08-25 4:24 ` [PATCH 3/8] clk: spacemit: ccu_pll: add plla type clock Yixun Lan
2026-08-25 4:24 ` [PATCH 4/8] clk: spacemit: k3: extract common header Yixun Lan
2026-08-25 4:24 ` [PATCH 5/8] clk: spacemit: k3: add the clock tree Yixun Lan
2026-08-25 4:24 ` [PATCH 6/8] clk: spacemit: k3: reduce clock tree for SPL build Yixun Lan
2026-09-02 9:55 ` Tim Ouyang
2026-09-04 20:52 ` Yixun Lan
2026-08-25 4:24 ` [PATCH 7/8] reset: spacemit: Extract common K1 reset code Yixun Lan
2026-08-25 4:24 ` [PATCH 8/8] reset: spacemit: Add SpacemiT K3 reset driver Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260825-01-k3-clock-reset-support-v1-1-c430253e759c@kernel.org \
--to=dlan@kernel.org \
--cc=alchark@flipper.net \
--cc=duwe@suse.de \
--cc=guodong.xu@oss.qualcomm.com \
--cc=jonas@kwiboo.se \
--cc=junhui.liu@pigmoral.tech \
--cc=lukma@denx.de \
--cc=peng.fan@nxp.com \
--cc=raymond.mao@riscstar.com \
--cc=ryan_chen@aspeedtech.com \
--cc=spacemit@lists.linux.dev \
--cc=trini@konsulko.com \
--cc=u-boot-spacemit@groups.io \
--cc=u-boot@lists.u-boot-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox