]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: qcom: ipq5018: keep XO clock always on
authorGeorge Moussalem <george.moussalem@outlook.com>
Fri, 16 May 2025 12:36:08 +0000 (16:36 +0400)
committerBjorn Andersson <andersson@kernel.org>
Thu, 17 Jul 2025 04:05:19 +0000 (23:05 -0500)
The XO clock must not be disabled to avoid the kernel trying to disable
the it. As such, keep the XO clock always on by flagging it as critical.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250516-ipq5018-cmn-pll-v4-1-389a6b30e504@outlook.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-ipq5018.c

index 70f5dcb96700f55da1fb19fc893d22350a7e63bf..24eb4c40da63462077ee2e5714e838aa30ced2e3 100644 (file)
@@ -1371,7 +1371,7 @@ static struct clk_branch gcc_xo_clk = {
                                &gcc_xo_clk_src.clkr.hw,
                        },
                        .num_parents = 1,
-                       .flags = CLK_SET_RATE_PARENT,
+                       .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL,
                        .ops = &clk_branch2_ops,
                },
        },