]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: qcom: Leave mmss noc on for 8998
authorJeffrey Hugo <jhugo@codeaurora.org>
Thu, 13 Dec 2018 22:43:40 +0000 (15:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:19 +0000 (20:02 +0100)
[ Upstream commit 12eced09cd301aa7b1868a67c50a651c2aacd363 ]

Similar to other qcom targets, gcc_mmss_noc_cfg_ahb_clk should not be
disabled.  Any mmss access depends on this clock, and its been observed
that enabling mmssnoc_axi_rpm_clk with rpmcc results in an implicit
access to mmss and will crash the system if gcc_mmss_noc_cfg_ahb_clk is
disabled.

Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Fixes: 4807c71cc688 (arm64: dts: Add msm8998 SoC and MTP board support)
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/qcom/gcc-msm8998.c

index 9f0ae403d5f53eb54ede64891e4a6cc573f04e6e..cb714c3e2924e383cf01a2ca483caae7048381c4 100644 (file)
@@ -2042,6 +2042,12 @@ static struct clk_branch gcc_mmss_noc_cfg_ahb_clk = {
                .hw.init = &(struct clk_init_data){
                        .name = "gcc_mmss_noc_cfg_ahb_clk",
                        .ops = &clk_branch2_ops,
+                       /*
+                        * Any access to mmss depends on this clock.
+                        * Gating this clock has been shown to crash the system
+                        * when mmssnoc_axi_rpm_clk is inited in rpmcc.
+                        */
+                       .flags = CLK_IS_CRITICAL,
                },
        },
 };