Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: gcc-msm8996: Mark aggre0 noc clks as critical

aggre0 bus clks are not associated with any of the drivers, so its
important that these clks are always on to get peripherals on this
bus working. So mark them as critical.

Eventually when we have a proper bus driver these clks can be marked
appropriately.

Without this patch pcie on db820c is not functional.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Srinivas Kandagatla and committed by
Stephen Boyd
496037c0 7928b2cb

+4 -4
+4 -4
drivers/clk/qcom/gcc-msm8996.c
··· 2895 2895 .name = "gcc_aggre0_snoc_axi_clk", 2896 2896 .parent_names = (const char *[]){ "system_noc_clk_src" }, 2897 2897 .num_parents = 1, 2898 - .flags = CLK_SET_RATE_PARENT, 2898 + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 2899 2899 .ops = &clk_branch2_ops, 2900 2900 }, 2901 2901 }, ··· 2910 2910 .name = "gcc_aggre0_cnoc_ahb_clk", 2911 2911 .parent_names = (const char *[]){ "config_noc_clk_src" }, 2912 2912 .num_parents = 1, 2913 - .flags = CLK_SET_RATE_PARENT, 2913 + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 2914 2914 .ops = &clk_branch2_ops, 2915 2915 }, 2916 2916 }, ··· 2925 2925 .name = "gcc_smmu_aggre0_axi_clk", 2926 2926 .parent_names = (const char *[]){ "system_noc_clk_src" }, 2927 2927 .num_parents = 1, 2928 - .flags = CLK_SET_RATE_PARENT, 2928 + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 2929 2929 .ops = &clk_branch2_ops, 2930 2930 }, 2931 2931 }, ··· 2940 2940 .name = "gcc_smmu_aggre0_ahb_clk", 2941 2941 .parent_names = (const char *[]){ "config_noc_clk_src" }, 2942 2942 .num_parents = 1, 2943 - .flags = CLK_SET_RATE_PARENT, 2943 + .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, 2944 2944 .ops = &clk_branch2_ops, 2945 2945 }, 2946 2946 },