summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamlesh Gurudasani <[email protected]>2025-11-04 16:49:30 +0530
committerPeng Fan <[email protected]>2025-11-10 20:57:44 +0800
commit66cb830291b78389eb995960ee5e1460aedd7447 (patch)
treeb73c2537c06284b4b489e14853eb82c2d81a10bd
parent0619cb32030b1d78379f3181d3e1103bb86124fb (diff)
clk: scmi: fix set_parent support when CCF is not being used
When not using Common clock framework(CCF), calls to scmi_clk_set_parent returns -ENOTSUPP, which should not be the case. Fix that. Fixes: 15fdfef6642c ("clk: scmi: check the clock state/parent/rate control permissions) Signed-off-by: Kamlesh Gurudasani <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Signed-off-by: Peng Fan <[email protected]>
-rw-r--r--drivers/clk/clk_scmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c
index 54378b4e1ec..37e349b9c78 100644
--- a/drivers/clk/clk_scmi.c
+++ b/drivers/clk/clk_scmi.c
@@ -377,7 +377,7 @@ static int scmi_clk_set_parent(struct clk *clk, struct clk *parent)
int ret;
if (!CONFIG_IS_ENABLED(CLK_CCF))
- return -ENOTSUPP;
+ return __scmi_clk_set_parent(clk, parent);
ret = clk_get_by_id(clk->id, &c);
if (ret)