Thread (12 messages) 12 messages, 4 authors, 2015-10-12

[PATCH v2 2/5] PCI: Add quirk for PLDA's XpressRICH3 host bridge class.

From: arnd@arndb.de (Arnd Bergmann)
Date: 2015-10-09 18:32:22
Also in: linux-devicetree, linux-pci, lkml

On Friday 09 October 2015 17:57:26 Liviu Dudau wrote:
+/*
+ * The PLDA's XpressRICH3 doesn't describe itself as a bridge. This is required
+ * for correct/normal enumeration.
+ */
+static void xr3pci_quirk_class(struct pci_dev *pdev)
+{
+       pdev->class = PCI_CLASS_BRIDGE_PCI << 8;
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLDA, PCI_DEVICE_ID_XR3PCI, xr3pci_quirk_class);
Are you sure that this device ID is only used for the host bridge, not
for related devices in endpoint mode?

While we don't support PCIe endpoint drivers at the moment, it might
happen at some point and then things break when someone tries to
plug a machine with this ID into a Linux host.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help