]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: qcom: branch: Extend invert logic for branch2 mem clocks
authorTaniya Das <taniya.das@oss.qualcomm.com>
Tue, 18 Nov 2025 07:17:07 +0000 (12:47 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 18 Nov 2025 22:11:29 +0000 (16:11 -0600)
commitaa788d3b475652a3ebaca32ca714f02f8ece3393
tree595a1ef588140530fe807e01ae52ad81c5488ef7
parent53a18958349a627ae5d6b1ea708289b6cf3d8b9d
clk: qcom: branch: Extend invert logic for branch2 mem clocks

Some clock branches require inverted logic for memory gating, where
disabling the memory involves setting a bit and enabling it involves
clearing the same bit. This behavior differs from the standard approach
memory branch clocks ops where enabling typically sets the bit.

The mem_enable_invert to allow conditional handling of these sequences
of the inverted control logic for memory operations required on those
memory clock branches.

Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251118-sm8750-videocc-v2-v4-3-049882a70c9f@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/clk-branch.c