Skip to contentSkip to conversation

PCI/portdrv: Support for subtractive decode bridge

RFC PATCH Applied [email protected] 2 participants 2 messages Feb 14, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH v2 1/1 PCI/portdrv: Support for subtractive decode bridge

From: Honghui Zhang <[email protected]>

The Class Code for subtractive decode PCI-to-PCI bridge is 060401h, add one entry to make portdrv support this type bridge.

---
 drivers/pci/pcie/portdrv_pci.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/pcie/portdrv_pci.c +2 -0
index 0acca35..c129f2f 100644
@@ -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),
 	}, { /* end: all zeroes */ }
 };
 
Signature · 1 line
2.6.4
#1 lore raw
Quoted 6 lines · On Thu, Feb 14, 2019 at 01:21:17PM +0800, [email protected] wrote:

From: Honghui Zhang <[email protected]>

The Class Code for subtractive decode PCI-to-PCI bridge is 060401h, add one entry to make portdrv support this type bridge.

Applied to pci/portdrv for v5.1, thanks!

Quoted 25 lines
---
 drivers/pci/pcie/portdrv_pci.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/pci/pcie/portdrv_pci.c +2 -0
index 0acca35..c129f2f 100644
@@ -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),
 	}, { /* end: all zeroes */ }
 };
 
Signature · 7 lines
2.6.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel