]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: scmi: Fix clock identifier passed to struct scmi_clk_parent_set_in
authorAlice Guo <alice.guo@nxp.com>
Mon, 7 Jul 2025 20:20:34 +0000 (04:20 +0800)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 29 Jul 2025 15:02:31 +0000 (17:02 +0200)
commit52b7ad7bec06bf841a894ad26c930cf816f4004d
tree8b8929fe3e5dec24e1c3f3805cc823cb8a470e65
parentf91bb6d1df89b5652d7b8d68724e5fc557bb081d
clk: scmi: Fix clock identifier passed to struct scmi_clk_parent_set_in

Commit aa7bdc1af505 ("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: aa7bdc1af505 ("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>
drivers/clk/clk_scmi.c