Skip to content

Commit 884372a

Browse files
mdrustadgregkh
authored andcommitted
PCI: Add VPD function 0 quirk for Intel Ethernet devices
commit 7aa6ca4 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 91a37c7 commit 884372a

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
@@ -1903,6 +1903,15 @@ static void quirk_netmos(struct pci_dev *dev)
19031903
DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID,
19041904
PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos);
19051905

1906+
static void quirk_f0_vpd_link(struct pci_dev *dev)
1907+
{
1908+
if (!dev->multifunction || !PCI_FUNC(dev->devfn))
1909+
return;
1910+
dev->dev_flags |= PCI_DEV_FLAGS_VPD_REF_F0;
1911+
}
1912+
DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_INTEL, PCI_ANY_ID,
1913+
PCI_CLASS_NETWORK_ETHERNET, 8, quirk_f0_vpd_link);
1914+
19061915
static void quirk_e100_interrupt(struct pci_dev *dev)
19071916
{
19081917
u16 command, pmcsr;

0 commit comments

Comments
 (0)