Skip to content

Commit 5051b61

Browse files
Manikanta Mylavarapuandersson
authored andcommitted
clk: qcom: ipq5424: remove apss_dbg clock
The gcc_apss_dbg clk is access protected by trust zone, and accessing it results in a kernel crash. Therefore remove the gcc_apss_dbg_clk from the gcc driver. Signed-off-by: Manikanta Mylavarapu <quic_mmanikan@quicinc.com> Link: https://lore.kernel.org/r/20241217113909.3522305-2-quic_mmanikan@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent bf6aa2d commit 5051b61

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

drivers/clk/qcom/gcc-ipq5424.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,24 +1097,6 @@ static struct clk_branch gcc_adss_pwm_clk = {
10971097
},
10981098
};
10991099

1100-
static struct clk_branch gcc_apss_dbg_clk = {
1101-
.halt_reg = 0x2402c,
1102-
.halt_check = BRANCH_HALT_VOTED,
1103-
.clkr = {
1104-
.enable_reg = 0x2402c,
1105-
.enable_mask = BIT(0),
1106-
.hw.init = &(const struct clk_init_data) {
1107-
.name = "gcc_apss_dbg_clk",
1108-
.parent_hws = (const struct clk_hw*[]) {
1109-
&gcc_qdss_dap_sync_clk_src.hw
1110-
},
1111-
.num_parents = 1,
1112-
.flags = CLK_SET_RATE_PARENT,
1113-
.ops = &clk_branch2_ops,
1114-
},
1115-
},
1116-
};
1117-
11181100
static struct clk_branch gcc_cnoc_pcie0_1lane_s_clk = {
11191101
.halt_reg = 0x31088,
11201102
.halt_check = BRANCH_HALT,
@@ -2785,7 +2767,6 @@ static struct clk_branch gcc_pcie3_rchng_clk = {
27852767
static struct clk_regmap *gcc_ipq5424_clocks[] = {
27862768
[GCC_ADSS_PWM_CLK] = &gcc_adss_pwm_clk.clkr,
27872769
[GCC_ADSS_PWM_CLK_SRC] = &gcc_adss_pwm_clk_src.clkr,
2788-
[GCC_APSS_DBG_CLK] = &gcc_apss_dbg_clk.clkr,
27892770
[GCC_CNOC_PCIE0_1LANE_S_CLK] = &gcc_cnoc_pcie0_1lane_s_clk.clkr,
27902771
[GCC_CNOC_PCIE1_1LANE_S_CLK] = &gcc_cnoc_pcie1_1lane_s_clk.clkr,
27912772
[GCC_CNOC_PCIE2_2LANE_S_CLK] = &gcc_cnoc_pcie2_2lane_s_clk.clkr,

0 commit comments

Comments
 (0)