aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinaro CI <ci_notify@linaro.org>2020-10-30 05:30:25 +0000
committerLinaro CI <ci_notify@linaro.org>2020-10-30 05:30:25 +0000
commit7ffaaaf1ed41522c6d7de1105fb08613ba2dd851 (patch)
tree10b4701b9359bee16f38202b619452f9bbe96964
parent897ebef142bbc5807bd10e26cde1313c40f25cbd (diff)
parent15aa99a0a0d7beed4a4e1bf2e6b7dfec7d9aa05e (diff)
Merge remote-tracking branch 'bus-scaling/icc-testing' into integration-linux-qcomlt
-rw-r--r--drivers/pci/controller/dwc/pcie-qcom.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c
index b4761640ffd9..0a4aae85ded8 100644
--- a/drivers/pci/controller/dwc/pcie-qcom.c
+++ b/drivers/pci/controller/dwc/pcie-qcom.c
@@ -1481,6 +1481,13 @@ static void qcom_fixup_class(struct pci_dev *dev)
{
dev->class = PCI_CLASS_BRIDGE_PCI << 8;
}
+
+static void qcom_fixup_nopm(struct pci_dev *dev)
+{
+ dev->pm_cap = 0;
+ dev_info(&dev->dev, "Disabling PCI power management\n");
+}
+
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0101, qcom_fixup_class);
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0104, qcom_fixup_class);
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0106, qcom_fixup_class);
@@ -1488,6 +1495,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0107, qcom_fixup_class);
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x0302, qcom_fixup_class);
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1000, qcom_fixup_class);
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_QCOM, 0x1001, qcom_fixup_class);
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_RENESAS, 0x0014, qcom_fixup_nopm);
static struct platform_driver qcom_pcie_driver = {
.probe = qcom_pcie_probe,