Skip to content
/ linux Public

Commit 37babf2

Browse files
kona-jagadeeshgregkh
authored andcommitted
clk: qcom: gcc-sm4450: Update the SDCC RCGs to use shared_floor_ops
[ Upstream commit 458e8a0 ] 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: c32c4ef ("clk: qcom: Add GCC driver support for SM4450") Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251127-sdcc_shared_floor_ops-v2-3-473afc86589c@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7873e2a commit 37babf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/clk/qcom/gcc-sm4450.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ static struct clk_rcg2 gcc_sdcc1_apps_clk_src = {
769769
.parent_data = gcc_parent_data_4,
770770
.num_parents = ARRAY_SIZE(gcc_parent_data_4),
771771
.flags = CLK_SET_RATE_PARENT,
772-
.ops = &clk_rcg2_floor_ops,
772+
.ops = &clk_rcg2_shared_floor_ops,
773773
},
774774
};
775775

@@ -791,7 +791,7 @@ static struct clk_rcg2 gcc_sdcc1_ice_core_clk_src = {
791791
.parent_data = gcc_parent_data_4,
792792
.num_parents = ARRAY_SIZE(gcc_parent_data_4),
793793
.flags = CLK_SET_RATE_PARENT,
794-
.ops = &clk_rcg2_floor_ops,
794+
.ops = &clk_rcg2_shared_floor_ops,
795795
},
796796
};
797797

@@ -815,7 +815,7 @@ static struct clk_rcg2 gcc_sdcc2_apps_clk_src = {
815815
.parent_data = gcc_parent_data_6,
816816
.num_parents = ARRAY_SIZE(gcc_parent_data_6),
817817
.flags = CLK_SET_RATE_PARENT,
818-
.ops = &clk_rcg2_floor_ops,
818+
.ops = &clk_rcg2_shared_floor_ops,
819819
},
820820
};
821821

0 commit comments

Comments
 (0)