]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: qcom: Set max OPP before DBI access during resume
authorQiang Yu <qiang.yu@oss.qualcomm.com>
Fri, 17 Apr 2026 04:16:25 +0000 (21:16 -0700)
committerManivannan Sadhasivam <mani@kernel.org>
Wed, 13 May 2026 13:42:44 +0000 (19:12 +0530)
commit5dc31cd4a91a7f006d23efa97a5594a7e3ac7790
treeed86df64fc7da2b37b3f81d60cabc40025228379
parent254f49634ee16a731174d2ae34bc50bd5f45e731
PCI: qcom: Set max OPP before DBI access during resume

During resume, qcom_pcie_icc_opp_update() may access DBI registers before
the OPP votes are restored, triggering NoC errors.

Set the PCIe controller to the maximum OPP first in resume_noirq(), then
proceed with link/DBI accesses. The OPP is later updated again based on
the actual link bandwidth requirements.

Introduce a helper to reuse the max-OPP setup code and share it with
probe().

Fixes: 5b6272e0efd5 ("PCI: qcom: Add OPP support to scale performance")
Signed-off-by: Qiang Yu <qiang.yu@oss.qualcomm.com>
[mani: commit log and error log rewording]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260416-setmaxopp-v1-1-6a74e2d945a0@oss.qualcomm.com
drivers/pci/controller/dwc/pcie-qcom.c