mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
clk: scmi: Fix clock identifier passed to struct scmi_clk_parent_set_in
Commitaa7bdc1af5("clk: scmi: manage properly the clk identifier with CFF") enables CONFIG_CLK_AUTO_ID, so need to use clk_get_id() to get the real SCMI CLK ID, otherwise wrong ID is used when set clk parent. Fixes:aa7bdc1af5("clk: scmi: manage properly the clk identifier with CCF") Signed-off-by: Alice Guo <alice.guo@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
committed by
Patrice Chotard
parent
f91bb6d1df
commit
52b7ad7bec
@@ -336,8 +336,8 @@ static int scmi_clk_probe(struct udevice *dev)
|
||||
static int __scmi_clk_set_parent(struct clk *clk, struct clk *parent)
|
||||
{
|
||||
struct scmi_clk_parent_set_in in = {
|
||||
.clock_id = clk->id,
|
||||
.parent_clk = parent->id,
|
||||
.clock_id = clk_get_id(clk),
|
||||
.parent_clk = clk_get_id(parent),
|
||||
};
|
||||
struct scmi_clk_parent_set_out out;
|
||||
struct scmi_msg msg = SCMI_MSG_IN(SCMI_PROTOCOL_ID_CLOCK,
|
||||
|
||||
Reference in New Issue
Block a user