Skip to content

Commit 377c0b4

Browse files
Kathiravan Tandersson
authored andcommitted
clk: qcom: ipq5332: mark GPLL4 as ignore unused temporarily
Clock framework disables the GPLL4 source since there are no active users for this source currently. Some of the clocks initialized by the bootloaders uses the GPLL4 as the source. Due to this, when the GPLL4 is disabled by the clock framework, system is going for the reboot. To avoid this, mark the GPLL4 as ignore unused so that clock framework doesn't disable it. Once the users of this source is enabled, we can get rid of this flag. Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230307062232.4889-6-quic_kathirav@quicinc.com
1 parent 3d89d52 commit 377c0b4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/clk/qcom/gcc-ipq5332.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ static struct clk_alpha_pll gpll4_main = {
128128
.parent_data = &gcc_parent_data_xo,
129129
.num_parents = 1,
130130
.ops = &clk_alpha_pll_stromer_ops,
131+
/*
132+
* There are no consumers for this GPLL in kernel yet,
133+
* (will be added soon), so the clock framework
134+
* disables this source. But some of the clocks
135+
* initialized by boot loaders uses this source. So we
136+
* need to keep this clock ON. Add the
137+
* CLK_IGNORE_UNUSED flag so the clock will not be
138+
* disabled. Once the consumer in kernel is added, we
139+
* can get rid of this flag.
140+
*/
141+
.flags = CLK_IGNORE_UNUSED,
131142
},
132143
},
133144
};

0 commit comments

Comments
 (0)