Message ID | defa049210d43fa42bdb1cec93495e4038f00d88.1562172836.git.sathyanarayanan.kuppuswamy@linux.intel.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | Fix PF/VF dependency issue | expand |
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8abc843b1615..c299ab470351 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -2986,6 +2986,13 @@ void pci_ea_init(struct pci_dev *dev) int offset; int i; + /* + * Per PCIe r4.0, sec 9.3.6, VF must not implement Enhanced + * Allocation Capability. + */ + if (dev->is_virtfn) + return; + /* find PCI EA capability in list */ ea = pci_find_capability(dev, PCI_CAP_ID_EA); if (!ea)