clk: qcom: gcc-sdm660: Mark MMSS NoC CFG AHB clock as critical
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Wed, 13 Jan 2021 18:38:09 +0000 (19:38 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sun, 14 Feb 2021 20:56:54 +0000 (12:56 -0800)
Similarly to MSM8998, any access to the MMSS depends on this clock.
Gating it will crash the system when RPMCC inits mmssnoc_axi_rpm_clk.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Link: https://lore.kernel.org/r/20210113183817.447866-2-angelogioacchino.delregno@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-sdm660.c

index 31258795e7b86bbe18d755c6a224269a7cec8ec4..3b7181d0ff712cf27ee59aa88c2070cd4dda615d 100644 (file)
@@ -1684,6 +1684,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,
                },
        },
 };