From 66cb830291b78389eb995960ee5e1460aedd7447 Mon Sep 17 00:00:00 2001 From: Kamlesh Gurudasani Date: Tue, 4 Nov 2025 16:49:30 +0530 Subject: [PATCH] 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 Reviewed-by: Dhruva Gole Signed-off-by: Peng Fan --- drivers/clk/clk_scmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)