Skip to contentSkip to conversation

clk: qcom: Drop unused 8998 clock

PATCH Superseded Jeffrey Hugo 3 participants 3 messages Dec 13, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: qcom: Drop unused 8998 clock

gcc_lpass_trig_clk is not used downstream, therefore there is no reason to expect it to be needed for clients. Lets remove it because messing with the clock has been observed to cause Linux hangs when the qdss_clk is initialized by rpmcc.

---
 drivers/clk/qcom/gcc-msm8998.c | 14 --------------
 1 file changed, 14 deletions(-)
drivers/clk/qcom/gcc-msm8998.c +0 -14
index f3c2ab4..4b75a09 100644
@@ -2005,19 +2005,6 @@ enum {
 	},
 };
 
-static struct clk_branch gcc_lpass_trig_clk = {
-	.halt_reg = 0x4701c,
-	.halt_check = BRANCH_HALT,
-	.clkr = {
-		.enable_reg = 0x4701c,
-		.enable_mask = BIT(0),
-		.hw.init = &(struct clk_init_data){
-			.name = "gcc_lpass_trig_clk",
-			.ops = &clk_branch2_ops,
-		},
-	},
-};
-
 static struct clk_branch gcc_mmss_noc_cfg_ahb_clk = {
 	.halt_reg = 0x9004,
 	.halt_check = BRANCH_HALT,
@@ -2710,7 +2697,6 @@ enum {
 	[GCC_HMSS_AT_CLK] = &gcc_hmss_at_clk.clkr,
 	[GCC_HMSS_RBCPR_CLK] = &gcc_hmss_rbcpr_clk.clkr,
 	[GCC_HMSS_TRIG_CLK] = &gcc_hmss_trig_clk.clkr,
-	[GCC_LPASS_TRIG_CLK] = &gcc_lpass_trig_clk.clkr,
 	[GCC_MMSS_NOC_CFG_AHB_CLK] = &gcc_mmss_noc_cfg_ahb_clk.clkr,
 	[GCC_MMSS_QM_AHB_CLK] = &gcc_mmss_qm_ahb_clk.clkr,
 	[GCC_MMSS_QM_CORE_CLK] = &gcc_mmss_qm_core_clk.clkr,
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Jeffrey Hugo

gcc_lpass_trig_clk is not used downstream, therefore there is no reason to expect it to be needed for clients. Lets remove it because messing with

"Let's" ;-p

Quoted 7 lines

the clock has been observed to cause Linux hangs when the qdss_clk is initialized by rpmcc.

---
 drivers/clk/qcom/gcc-msm8998.c | 14 --------------
 1 file changed, 14 deletions(-)

Regards.

maintainer
#2 lore raw
In reply to Jeffrey Hugo

Quoting Jeffrey Hugo (2018-12-13 08:44:14)

Quoted 6 lines

gcc_lpass_trig_clk is not used downstream, therefore there is no reason to expect it to be needed for clients. Lets remove it because messing with the clock has been observed to cause Linux hangs when the qdss_clk is initialized by rpmcc.

Fixes tag?