]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
firmware: scmi: sandbox: Use scmi_clk_state_in_v2 852/head
authorPeng Fan <peng.fan@nxp.com>
Wed, 17 Dec 2025 08:13:23 +0000 (16:13 +0800)
committerPeng Fan <peng.fan@nxp.com>
Wed, 28 Jan 2026 06:28:01 +0000 (14:28 +0800)
The sandbox scmi clock protocol use version 3.0, so need to use
scmi_clk_state_in_v2.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/firmware/scmi/sandbox-scmi_agent.c

index 5b242a039c2a65ec362c0818147541ead70228ed..010bf99fbc68a62ce3f53782948606cfb245ef80 100644 (file)
@@ -828,7 +828,7 @@ static int sandbox_scmi_clock_rate_get(struct udevice *dev,
 
 static int sandbox_scmi_clock_gate(struct udevice *dev, struct scmi_msg *msg)
 {
-       struct scmi_clk_state_in_v1 *in = NULL;
+       struct scmi_clk_state_in_v2 *in = NULL;
        struct scmi_clk_state_out *out = NULL;
        struct sandbox_scmi_clk *clk_state = NULL;
 
@@ -836,7 +836,7 @@ static int sandbox_scmi_clock_gate(struct udevice *dev, struct scmi_msg *msg)
            !msg->out_msg || msg->out_msg_sz < sizeof(*out))
                return -EINVAL;
 
-       in = (struct scmi_clk_state_in_v1 *)msg->in_msg;
+       in = (struct scmi_clk_state_in_v2 *)msg->in_msg;
        out = (struct scmi_clk_state_out *)msg->out_msg;
 
        clk_state = get_scmi_clk_state(in->clock_id);