]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI/portdrv: Support PCIe services on subtractive decode bridges
authorHonghui Zhang <honghui.zhang@mediatek.com>
Thu, 14 Feb 2019 05:21:17 +0000 (13:21 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 15 Feb 2019 19:58:20 +0000 (13:58 -0600)
The Class Code for subtractive decode PCI-to-PCI bridge is 060401h; add an
entry to make portdrv support this type of bridge.  This allows use of PCIe
services on subtractive decode ports.

Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
[bhelgaas: add braces surrounding entry]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/portdrv_pci.c

index a289e734b9a43519ac06a70610e4b062860a319c..99d2abe88d0b53b4b25bfc1ce35126689ad3dbb2 100644 (file)
@@ -185,6 +185,8 @@ static void pcie_portdrv_err_resume(struct pci_dev *dev)
 static const struct pci_device_id port_pci_ids[] = {
        /* handle any PCI-Express port */
        { PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x00), ~0) },
+       /* subtractive decode PCI-to-PCI bridge, class type is 060401h */
+       { PCI_DEVICE_CLASS(((PCI_CLASS_BRIDGE_PCI << 8) | 0x01), ~0) },
        { },
 };