Skip to content

Commit 0820c93

Browse files
taniyadas20andersson
authored andcommitted
clk: qcom: gcc-qcs615: Update the SDCC clock to use shared_floor_ops
Fix "gcc_sdcc2_apps_clk_src: rcg didn't update its configuration" during boot. This happens due to the floor_ops tries to update the rcg configuration even if the clock is not enabled. The shared_floor_ops ensures that the RCG is safely parked and the new parent configuration is cached in the parked_cfg when the clock is off. Ensure to use the ops for the other SDCC clock instances as well. Fixes: 39d6dcf ("clk: qcom: gcc: Add support for QCS615 GCC clocks") Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251029-sdcc_rcg2_shared_ops-v3-1-ecf47d9601d1@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 415aad7 commit 0820c93

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/clk/qcom/gcc-qcs615.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
784784
.name = "gcc_sdcc1_apps_clk_src",
785785
.parent_data = gcc_parent_data_1,
786786
.num_parents = ARRAY_SIZE(gcc_parent_data_1),
787-
.ops = &clk_rcg2_floor_ops,
787+
.ops = &clk_rcg2_shared_floor_ops,
788788
},
789789
};
790790

@@ -806,7 +806,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
806806
.name = "gcc_sdcc1_ice_core_clk_src",
807807
.parent_data = gcc_parent_data_0,
808808
.num_parents = ARRAY_SIZE(gcc_parent_data_0),
809-
.ops = &clk_rcg2_floor_ops,
809+
.ops = &clk_rcg2_shared_floor_ops,
810810
},
811811
};
812812

@@ -830,7 +830,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
830830
.name = "gcc_sdcc2_apps_clk_src",
831831
.parent_data = gcc_parent_data_8,
832832
.num_parents = ARRAY_SIZE(gcc_parent_data_8),
833-
.ops = &clk_rcg2_floor_ops,
833+
.ops = &clk_rcg2_shared_floor_ops,
834834
},
835835
};
836836

0 commit comments

Comments
 (0)