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

clk: qcom: mmcc-8996: Remove clocks that should be controlled by RPM

The branch clocks MMSS_MMAGIC_AXI_CLK and MMAGIC_BIMC_AXI_CLK are
controlled by RPM when the APPs processor enable or disable the
RPM_MMAXI_CLK.

During the boot sequence, someone can enable the RPM_MMAXI_CLK, resulting
in register status bits showing that these clocks are enabled, our
clock driver may look at the enabled status of these clocks and try to
disable them since it thinks they are unused.

Don't make the clock driver touch these clocks.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Archit Taneja and committed by
Stephen Boyd
9ffee1c4 d8609a3a

-32
-32
drivers/clk/qcom/mmcc-msm8996.c
··· 1279 1279 }, 1280 1280 }; 1281 1281 1282 - static struct clk_branch mmss_mmagic_axi_clk = { 1283 - .halt_reg = 0x506c, 1284 - .clkr = { 1285 - .enable_reg = 0x506c, 1286 - .enable_mask = BIT(0), 1287 - .hw.init = &(struct clk_init_data){ 1288 - .name = "mmss_mmagic_axi_clk", 1289 - .parent_names = (const char *[]){ "axi_clk_src" }, 1290 - .num_parents = 1, 1291 - .flags = CLK_SET_RATE_PARENT, 1292 - .ops = &clk_branch2_ops, 1293 - }, 1294 - }, 1295 - }; 1296 - 1297 1282 static struct clk_branch mmss_mmagic_maxi_clk = { 1298 1283 .halt_reg = 0x5074, 1299 1284 .clkr = { ··· 1556 1571 .enable_mask = BIT(0), 1557 1572 .hw.init = &(struct clk_init_data){ 1558 1573 .name = "smmu_video_axi_clk", 1559 - .parent_names = (const char *[]){ "axi_clk_src" }, 1560 - .num_parents = 1, 1561 - .flags = CLK_SET_RATE_PARENT, 1562 - .ops = &clk_branch2_ops, 1563 - }, 1564 - }, 1565 - }; 1566 - 1567 - static struct clk_branch mmagic_bimc_axi_clk = { 1568 - .halt_reg = 0x5294, 1569 - .clkr = { 1570 - .enable_reg = 0x5294, 1571 - .enable_mask = BIT(0), 1572 - .hw.init = &(struct clk_init_data){ 1573 - .name = "mmagic_bimc_axi_clk", 1574 1574 .parent_names = (const char *[]){ "axi_clk_src" }, 1575 1575 .num_parents = 1, 1576 1576 .flags = CLK_SET_RATE_PARENT, ··· 3091 3121 [MMSS_MMAGIC_CFG_AHB_CLK] = &mmss_mmagic_cfg_ahb_clk.clkr, 3092 3122 [MMSS_MISC_AHB_CLK] = &mmss_misc_ahb_clk.clkr, 3093 3123 [MMSS_MISC_CXO_CLK] = &mmss_misc_cxo_clk.clkr, 3094 - [MMSS_MMAGIC_AXI_CLK] = &mmss_mmagic_axi_clk.clkr, 3095 3124 [MMSS_MMAGIC_MAXI_CLK] = &mmss_mmagic_maxi_clk.clkr, 3096 3125 [MMAGIC_CAMSS_AXI_CLK] = &mmagic_camss_axi_clk.clkr, 3097 3126 [MMAGIC_CAMSS_NOC_CFG_AHB_CLK] = &mmagic_camss_noc_cfg_ahb_clk.clkr, ··· 3110 3141 [MMAGIC_VIDEO_NOC_CFG_AHB_CLK] = &mmagic_video_noc_cfg_ahb_clk.clkr, 3111 3142 [SMMU_VIDEO_AHB_CLK] = &smmu_video_ahb_clk.clkr, 3112 3143 [SMMU_VIDEO_AXI_CLK] = &smmu_video_axi_clk.clkr, 3113 - [MMAGIC_BIMC_AXI_CLK] = &mmagic_bimc_axi_clk.clkr, 3114 3144 [MMAGIC_BIMC_NOC_CFG_AHB_CLK] = &mmagic_bimc_noc_cfg_ahb_clk.clkr, 3115 3145 [GPU_GX_GFX3D_CLK] = &gpu_gx_gfx3d_clk.clkr, 3116 3146 [GPU_GX_RBBMTIMER_CLK] = &gpu_gx_rbbmtimer_clk.clkr,