Skip to content

Commit 7aa6ca4

Browse files
mdrustadbjorn-helgaas
authored andcommitted
PCI: Add VPD function 0 quirk for Intel Ethernet devices
Set the PCI_DEV_FLAGS_VPD_REF_F0 flag on all Intel Ethernet device functions other than function 0, so that on multi-function devices, we will always read VPD from function 0 instead of from the other functions. [bhelgaas: changelog] Signed-off-by: Mark Rustad <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Alexander Duyck <[email protected]> CC: [email protected]
1 parent 932c435 commit 7aa6ca4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/pci/quirks.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,15 @@ static void quirk_netmos(struct pci_dev *dev)
18951895
DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID,
18961896
PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos);
18971897

1898+
static void quirk_f0_vpd_link(struct pci_dev *dev)
1899+
{
1900+
if (!dev->multifunction || !PCI_FUNC(dev->devfn))
1901+
return;
1902+
dev->dev_flags |= PCI_DEV_FLAGS_VPD_REF_F0;
1903+
}
1904+
DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_INTEL, PCI_ANY_ID,
1905+
PCI_CLASS_NETWORK_ETHERNET, 8, quirk_f0_vpd_link);
1906+
18981907
static void quirk_e100_interrupt(struct pci_dev *dev)
18991908
{
19001909
u16 command, pmcsr;

0 commit comments

Comments
 (0)