]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: qcom: gcc-x1e80100: Update the SDCC RCGs to use shared_floor_ops
authorJagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
Thu, 27 Nov 2025 17:57:41 +0000 (23:27 +0530)
committerBjorn Andersson <andersson@kernel.org>
Wed, 7 Jan 2026 15:12:01 +0000 (09:12 -0600)
Use shared_floor_ops for the SDCC RCGs so the RCG is safely parked
during disable and the new parent configuration is programmed in
hardware only when the new parent is enabled, avoiding cases where
the RCG configuration fails to update.

Fixes: 161b7c401f4b ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100")
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20251127-sdcc_shared_floor_ops-v2-6-473afc86589c@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-x1e80100.c

index ae9621aff85831caa7aeecce8480791deee2f9ef..74afd12c158c01c121d9aecd56e65c0c302d7cd0 100644 (file)
@@ -1564,7 +1564,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
                .parent_data = gcc_parent_data_9,
                .num_parents = ARRAY_SIZE(gcc_parent_data_9),
                .flags = CLK_SET_RATE_PARENT,
-               .ops = &clk_rcg2_floor_ops,
+               .ops = &clk_rcg2_shared_floor_ops,
        },
 };
 
@@ -1586,7 +1586,7 @@ static struct clk_rcg2 gcc_sdcc4_apps_clk_src = {
                .parent_data = gcc_parent_data_0,
                .num_parents = ARRAY_SIZE(gcc_parent_data_0),
                .flags = CLK_SET_RATE_PARENT,
-               .ops = &clk_rcg2_floor_ops,
+               .ops = &clk_rcg2_shared_floor_ops,
        },
 };