clk: qcom: gcc-sc7180: Mark the camera abh clock always ON

The camera clock controller requires the AHB clock, the driver when
moved to use the pm_runtime_get() API, the camera ahb clock failed turn
on before access, thus mark it as always ON.

Reported-by: Stephen Boyd <sboyd@kernel.org>
Fixes: 8d4025943e13 ("clk: qcom: camcc-sc7180: Use runtime PM ops instead of clk ones")
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lore.kernel.org/r/1608573816-1465-1-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by Taniya Das and committed by Stephen Boyd 98829137 5c8fe583

Changed files
+3 -18
drivers
clk
+3 -18
drivers/clk/qcom/gcc-sc7180.c
··· 891 891 }, 892 892 }; 893 893 894 - static struct clk_branch gcc_camera_ahb_clk = { 895 - .halt_reg = 0xb008, 896 - .halt_check = BRANCH_HALT, 897 - .hwcg_reg = 0xb008, 898 - .hwcg_bit = 1, 899 - .clkr = { 900 - .enable_reg = 0xb008, 901 - .enable_mask = BIT(0), 902 - .hw.init = &(struct clk_init_data){ 903 - .name = "gcc_camera_ahb_clk", 904 - .ops = &clk_branch2_ops, 905 - }, 906 - }, 907 - }; 908 - 909 894 static struct clk_branch gcc_camera_hf_axi_clk = { 910 895 .halt_reg = 0xb020, 911 896 .halt_check = BRANCH_HALT, ··· 2302 2317 [GCC_AGGRE_UFS_PHY_AXI_CLK] = &gcc_aggre_ufs_phy_axi_clk.clkr, 2303 2318 [GCC_AGGRE_USB3_PRIM_AXI_CLK] = &gcc_aggre_usb3_prim_axi_clk.clkr, 2304 2319 [GCC_BOOT_ROM_AHB_CLK] = &gcc_boot_rom_ahb_clk.clkr, 2305 - [GCC_CAMERA_AHB_CLK] = &gcc_camera_ahb_clk.clkr, 2306 2320 [GCC_CAMERA_HF_AXI_CLK] = &gcc_camera_hf_axi_clk.clkr, 2307 2321 [GCC_CAMERA_THROTTLE_HF_AXI_CLK] = &gcc_camera_throttle_hf_axi_clk.clkr, 2308 2322 [GCC_CAMERA_XO_CLK] = &gcc_camera_xo_clk.clkr, ··· 2503 2519 2504 2520 /* 2505 2521 * Keep the clocks always-ON 2506 - * GCC_CPUSS_GNOC_CLK, GCC_VIDEO_AHB_CLK, GCC_DISP_AHB_CLK 2507 - * GCC_GPU_CFG_AHB_CLK 2522 + * GCC_CPUSS_GNOC_CLK, GCC_VIDEO_AHB_CLK, GCC_CAMERA_AHB_CLK, 2523 + * GCC_DISP_AHB_CLK, GCC_GPU_CFG_AHB_CLK 2508 2524 */ 2509 2525 regmap_update_bits(regmap, 0x48004, BIT(0), BIT(0)); 2510 2526 regmap_update_bits(regmap, 0x0b004, BIT(0), BIT(0)); 2527 + regmap_update_bits(regmap, 0x0b008, BIT(0), BIT(0)); 2511 2528 regmap_update_bits(regmap, 0x0b00c, BIT(0), BIT(0)); 2512 2529 regmap_update_bits(regmap, 0x71004, BIT(0), BIT(0)); 2513 2530