RE: [PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-03 Thread Gustavo Pimentel
On Wed, Feb 3, 2021 at 9:36:54, Lukas Wunner wrote: > On Wed, Feb 03, 2021 at 09:11:03AM +, Gustavo Pimentel wrote: > > On Wed, Feb 3, 2021 at 7:51:3, Lukas Wunner wrote: > > > On Wed, Feb 03, 2021 at 01:54:49AM +, Gustavo Pimentel wrote: > > > > On Tue, Feb 2, 2021 at 18:8:55, Lukas Wun

Re: [PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-03 Thread Lukas Wunner
On Wed, Feb 03, 2021 at 09:11:03AM +, Gustavo Pimentel wrote: > On Wed, Feb 3, 2021 at 7:51:3, Lukas Wunner wrote: > > On Wed, Feb 03, 2021 at 01:54:49AM +, Gustavo Pimentel wrote: > > > On Tue, Feb 2, 2021 at 18:8:55, Lukas Wunner wrote: > > > > As the name implies, the capability is "ve

RE: [PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-03 Thread Gustavo Pimentel
On Wed, Feb 3, 2021 at 7:51:3, Lukas Wunner wrote: > On Wed, Feb 03, 2021 at 01:54:49AM +, Gustavo Pimentel wrote: > > On Tue, Feb 2, 2021 at 18:8:55, Lukas Wunner wrote: > > > As the name implies, the capability is "vendor-specific", so it is > > > perfectly possible that two vendors use th

Re: [PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-02 Thread Lukas Wunner
On Wed, Feb 03, 2021 at 01:54:49AM +, Gustavo Pimentel wrote: > On Tue, Feb 2, 2021 at 18:8:55, Lukas Wunner wrote: > > As the name implies, the capability is "vendor-specific", so it is > > perfectly possible that two vendors use the same VSEC ID for different > > things. > > > > To make sur

RE: [PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-02 Thread Gustavo Pimentel
Hi Lukas, On Tue, Feb 2, 2021 at 18:8:55, Lukas Wunner wrote: > On Tue, Feb 02, 2021 at 01:40:18PM +0100, Gustavo Pimentel wrote: > > /** > > + * pci_find_vsec_capability - Find a vendor-specific extended capability > > + * @dev: PCI device to query > > + * @cap: vendor-specific capability ID c

Re: [PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-02 Thread Lukas Wunner
On Tue, Feb 02, 2021 at 01:40:18PM +0100, Gustavo Pimentel wrote: > /** > + * pci_find_vsec_capability - Find a vendor-specific extended capability > + * @dev: PCI device to query > + * @cap: vendor-specific capability ID code > + * > + * Returns the address of the vendor-specific structure that m

[PATCH v2 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-02 Thread Gustavo Pimentel
Add pci_find_vsec_capability() that crawls through the device config space searching in all Vendor-Specific Extended Capabilities for a particular capability ID. Vendor-Specific Extended Capability (VSEC) is a PCIe capability (acts like a wrapper) specified by PCI-SIG that allows the vendor to cre