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

clk: qcom: mmcc-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.

Fixes: d14b15b5931c ("clk: qcom: Add MSM8998 Multimedia Clock Controller (MMCC) driver")
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230531-topic-8998_mmssclk-v3-4-ba1b1fd9ee75@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Konrad Dybcio and committed by
Bjorn Andersson
9906c414 f7b7d301

+3
+3
drivers/clk/qcom/mmcc-msm8998.c
··· 2439 2439 2440 2440 static struct clk_branch mnoc_ahb_clk = { 2441 2441 .halt_reg = 0x5024, 2442 + .halt_check = BRANCH_HALT_SKIP, 2442 2443 .clkr = { 2443 2444 .enable_reg = 0x5024, 2444 2445 .enable_mask = BIT(0), ··· 2455 2454 2456 2455 static struct clk_branch bimc_smmu_ahb_clk = { 2457 2456 .halt_reg = 0xe004, 2457 + .halt_check = BRANCH_HALT_SKIP, 2458 2458 .hwcg_reg = 0xe004, 2459 2459 .hwcg_bit = 1, 2460 2460 .clkr = { ··· 2473 2471 2474 2472 static struct clk_branch bimc_smmu_axi_clk = { 2475 2473 .halt_reg = 0xe008, 2474 + .halt_check = BRANCH_HALT_SKIP, 2476 2475 .hwcg_reg = 0xe008, 2477 2476 .hwcg_bit = 1, 2478 2477 .clkr = {