Skip to contentSkip to conversation

imx9: scmi: clock: Correct imx_clk_scmi_enable

PATCH Superseded Peng Fan (OSS) 2 participants 2 messages Dec 10, 2025 – Dec 12, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx9: scmi: clock: Correct imx_clk_scmi_enable

From: Peng Fan <[email protected]>

i.MX9 SCMI Supports CLK SCMI version 3.0, so need to use "scmi_clk_state_in_v2".

Per Spec about extended_config_val: "This field is used to set extended configuration of the clock device. It can be ignored if extended config type specified by Bits[23:16] of the attributes field is set to 0."

So no need initialize extended_config_val.

Fixes 0619cb32030b ("firmware: scmi: Add clock v3.2 CONFIG_SET support")
---
 arch/arm/mach-imx/imx9/scmi/clock_scmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/imx9/scmi/clock_scmi.c +1 -1
index 9030dbf600d..a502f19bca5 100644
@@ -10,7 +10,7 @@
 
 int imx_clk_scmi_enable(u32 clock_id, bool enable)
 {
-	struct scmi_clk_state_in_v1 in = {
+	struct scmi_clk_state_in_v2 in = {
 		.clock_id = clock_id,
 		.attributes = !!enable,
 	};

---
base-commit: 0e0a198a68be71148f5ec27ef86796174f91436f
change-id: 20251209-imx-5e2430302f3a

Best regards,

Signature · 1 line
Peng Fan <[email protected]>
#1 lore raw
Quoted 5 lines · Peng Fan (OSS)

From: Peng Fan <[email protected]>

i.MX9 SCMI Supports CLK SCMI version 3.0, so need to use "scmi_clk_state_in_v2".

Quoted 7 lines

Per Spec about extended_config_val: "This field is used to set extended configuration of the clock device. It can be ignored if extended config type specified by Bits[23:16] of the attributes field is set to 0."

So no need initialize extended_config_val.

Fixes 0619cb32030b ("firmware: scmi: Add clock v3.2 CONFIG_SET support")

The aforementioned commit did not change the behavior of this code. The code worked before this commit with v1 structure, so I assume the firmware (SCP?) supports both the old v1 and new v2 structure ?

If yes, then this is not a bugfix and shouldn't have Fixes tag.