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

clk: qcom: gcc-msm8998: Don't check halt bit on some branch clks

Some branch clocks are governed externally and we're only supposed to
send a request concerning their shutdown, not actually ensure it happens.

Use the BRANCH_HALT_SKIP define to skip checking the halt bit.

Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230622-topic-8998clk-v2-6-6222fbc2916b@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Konrad Dybcio and committed by
Bjorn Andersson
a6f1e862 03f1b83d

+3 -3
+3 -3
drivers/clk/qcom/gcc-msm8998.c
··· 2112 2112 2113 2113 static struct clk_branch gcc_bimc_gfx_clk = { 2114 2114 .halt_reg = 0x46040, 2115 - .halt_check = BRANCH_HALT, 2115 + .halt_check = BRANCH_HALT_SKIP, 2116 2116 .clkr = { 2117 2117 .enable_reg = 0x46040, 2118 2118 .enable_mask = BIT(0), ··· 2125 2125 2126 2126 static struct clk_branch gcc_gpu_bimc_gfx_clk = { 2127 2127 .halt_reg = 0x71010, 2128 - .halt_check = BRANCH_HALT, 2128 + .halt_check = BRANCH_HALT_SKIP, 2129 2129 .clkr = { 2130 2130 .enable_reg = 0x71010, 2131 2131 .enable_mask = BIT(0), ··· 2151 2151 2152 2152 static struct clk_branch gcc_gpu_cfg_ahb_clk = { 2153 2153 .halt_reg = 0x71004, 2154 - .halt_check = BRANCH_HALT, 2154 + .halt_check = BRANCH_HALT_SKIP, 2155 2155 .clkr = { 2156 2156 .enable_reg = 0x71004, 2157 2157 .enable_mask = BIT(0),