aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers
diff options
context:
space:
mode:
authorHonghui Zhang <honghui.zhang@mediatek.com>2019-02-14 13:21:17 +0800
committerBjorn Helgaas <bhelgaas@google.com>2019-02-15 13:58:20 -0600
commitf0cfecea8d1e8e0cd5d5053f9452b3a450f49eb5 (patch)
tree1fd35b96fc6236131217a4780e9030451af9ae42 /drivers
parentPCI/portdrv: Use conventional Device ID table formatting (diff)
downloadwireguard-linux-f0cfecea8d1e8e0cd5d5053f9452b3a450f49eb5.tar.xz
wireguard-linux-f0cfecea8d1e8e0cd5d5053f9452b3a450f49eb5.zip
PCI/portdrv: Support PCIe services on subtractive decode bridges
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie/portdrv_pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
index a289e734b9a4..99d2abe88d0b 100644
--- a/drivers/pci/pcie/portdrv_pci.c
+++ b/drivers/pci/pcie/portdrv_pci.c
@@ -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) },
{ },
};