diff mbox series

clk: qcom: Avoid SMMU/cx gdsc corner cases

Message ID 20191217171905.5619-1-jeffrey.l.hugo@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series clk: qcom: Avoid SMMU/cx gdsc corner cases | expand

Commit Message

Jeffrey Hugo Dec. 17, 2019, 5:19 p.m. UTC
Mark the msm8998 cpu CX gdsc as votable and use the hw control to avoid
corner cases with SMMU per hardware documentation.

Fixes: 3f7df5baa259 ("clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
---
 drivers/clk/qcom/gpucc-msm8998.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stephen Boyd Dec. 19, 2019, 6:02 a.m. UTC | #1
Quoting Jeffrey Hugo (2019-12-17 09:19:05)
> Mark the msm8998 cpu CX gdsc as votable and use the hw control to avoid
> corner cases with SMMU per hardware documentation.
> 
> Fixes: 3f7df5baa259 ("clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver")
> Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
> ---

Applied to clk-fixes
diff mbox series

Patch

diff --git a/drivers/clk/qcom/gpucc-msm8998.c b/drivers/clk/qcom/gpucc-msm8998.c
index e5e2492b20c5..9b3923af02a1 100644
--- a/drivers/clk/qcom/gpucc-msm8998.c
+++ b/drivers/clk/qcom/gpucc-msm8998.c
@@ -242,10 +242,12 @@  static struct clk_branch gfx3d_isense_clk = {
 
 static struct gdsc gpu_cx_gdsc = {
 	.gdscr = 0x1004,
+	.gds_hw_ctrl = 0x1008,
 	.pd = {
 		.name = "gpu_cx",
 	},
 	.pwrsts = PWRSTS_OFF_ON,
+	.flags = VOTABLE,
 };
 
 static struct gdsc gpu_gx_gdsc = {