summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/mISDN/dsp_hwec.h
diff options
context:
space:
mode:
authorMd Sadre Alam <quic_mdalam@quicinc.com>2024-05-09 16:24:05 +0530
committerBjorn Andersson <andersson@kernel.org>2024-05-28 16:32:47 -0500
commit72ceafb587a56e26c905472418c7dc2033c294d3 (patch)
tree1fac97b038aa52c058b8cf9732fdad5758a06c67 /drivers/isdn/mISDN/dsp_hwec.h
parent2ba8425678af422da37b6c9b50e9ce66f0f55cae (diff)
downloadlinux-72ceafb587a56e26c905472418c7dc2033c294d3.tar.gz
linux-72ceafb587a56e26c905472418c7dc2033c294d3.tar.bz2
linux-72ceafb587a56e26c905472418c7dc2033c294d3.zip
clk: qcom: gcc-ipq9574: Add BRANCH_HALT_VOTED flag
The crypto_ahb and crypto_axi clks are hardware voteable. This means that the halt bit isn't reliable because some other voter in the system, e.g. TrustZone, could be keeping the clk enabled when the kernel turns it off from clk_disable(). Make these clks use voting mode by changing the halt check to BRANCH_HALT_VOTED and toggle the voting bit in the voting register instead of directly controlling the branch by writing to the branch register. This fixes stuck clk warnings seen on ipq9574 and saves power by actually turning the clk off. Also changes the CRYPTO_AHB_CLK_ENA & CRYPTO_AXI_CLK_ENA offset to 0xb004 from 0x16014. Cc: stable@vger.kernel.org Fixes: f6b2bd9cb29a ("clk: qcom: gcc-ipq9574: Enable crypto clocks") Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com> Link: https://lore.kernel.org/r/20240509105405.1262369-1-quic_mdalam@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/isdn/mISDN/dsp_hwec.h')
0 files changed, 0 insertions, 0 deletions