clk: scmi: fix set_parent support when CCF is not being used
authorKamlesh Gurudasani <kamlesh@ti.com>
Tue, 4 Nov 2025 11:19:30 +0000 (16:49 +0530)
committerPeng Fan <peng.fan@nxp.com>
Mon, 10 Nov 2025 12:57:44 +0000 (20:57 +0800)
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 <kamlesh@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk_scmi.c

index 54378b4..37e349b 100644 (file)
@@ -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)