Skip to content

Commit 313e290

Browse files
Taniya Dasandersson
authored andcommitted
clk: qcom: gpucc-sm8350: Park RCG's clk source at XO during disable
The RCG's clk src has to be parked at XO while disabling as per the HW recommendation, hence use clk_rcg2_shared_ops to achieve the same. Fixes: 160758b ("clk: qcom: add support for SM8350 GPUCC") Signed-off-by: Taniya Das <quic_tdas@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # SM8350-HDK Link: https://lore.kernel.org/r/20240621-sm8350-gpucc-fixes-v1-1-22db60c7c5d3@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent b45120f commit 313e290

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/clk/qcom/gpucc-sm8350.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/*
33
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
44
* Copyright (c) 2022, Linaro Limited
5+
* Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
56
*/
67

78
#include <linux/clk.h>
@@ -147,7 +148,7 @@ static struct clk_rcg2 gpu_cc_gmu_clk_src = {
147148
.parent_data = gpu_cc_parent_data_0,
148149
.num_parents = ARRAY_SIZE(gpu_cc_parent_data_0),
149150
.flags = CLK_SET_RATE_PARENT,
150-
.ops = &clk_rcg2_ops,
151+
.ops = &clk_rcg2_shared_ops,
151152
},
152153
};
153154

@@ -169,7 +170,7 @@ static struct clk_rcg2 gpu_cc_hub_clk_src = {
169170
.parent_data = gpu_cc_parent_data_1,
170171
.num_parents = ARRAY_SIZE(gpu_cc_parent_data_1),
171172
.flags = CLK_SET_RATE_PARENT,
172-
.ops = &clk_rcg2_ops,
173+
.ops = &clk_rcg2_shared_ops,
173174
},
174175
};
175176

0 commit comments

Comments
 (0)