Re: [Intel-wired-lan] [PATCH V2 1/2] pci: Add dev_flags bit to access VPD through function 0

2015-06-03 Thread Rustad, Mark D
> On Jun 2, 2015, at 7:28 PM, Alexander Duyck wrote: > > You can probably combine the dev->multifunction check with the dev_flags > check. After all you don't need this workaround if the device is not > multifunction. It might even make more sense to move the multifunction check > to the qui

Re: [Intel-wired-lan] [PATCH V2 1/2] pci: Add dev_flags bit to access VPD through function 0

2015-06-02 Thread Alexander Duyck
On 06/02/2015 05:10 PM, Mark D Rustad wrote: Add a dev_flags bit, PCI_DEV_FLAGS_VPD_REF_F0, to access VPD through function 0 to provide VPD access on other functions. This solves concurrent access problems on many devices without changing the attributes exposed in sysfs. Never set this bit on fun

[PATCH V2 1/2] pci: Add dev_flags bit to access VPD through function 0

2015-06-02 Thread Mark D Rustad
Add a dev_flags bit, PCI_DEV_FLAGS_VPD_REF_F0, to access VPD through function 0 to provide VPD access on other functions. This solves concurrent access problems on many devices without changing the attributes exposed in sysfs. Never set this bit on function 0 or there will be an infinite recursion.