[RFC PATCH] cxl: Use pci_find_vsec_capability() to simplify the code
Michael Ellerman
patch-notifications at ellerman.id.au
Wed Aug 23 21:55:55 AEST 2023
On Fri, 04 Aug 2023 15:56:30 +0800, Xiongfeng Wang wrote:
> PCI core add pci_find_vsec_capability() to query VSEC. We can use that
> core API to simplify the code.
>
> The only logical change is that pci_find_vsec_capability check the
> Vendor ID before finding the VSEC.
>
> PCI spec rev 5.0 says in 7.9.5.2 Vendor-Specific Header:
> VSEC ID - This field is a vendor-defined ID number that indicates the
> nature and format of the VSEC structure
> Software must qualify the Vendor ID before interpreting this field.
>
> [...]
Applied to powerpc/next.
[1/1] cxl: Use pci_find_vsec_capability() to simplify the code
https://git.kernel.org/powerpc/c/0e1cd3d9f82eb5440d32d4c0f12c65403b956cb5
cheers
More information about the Linuxppc-dev
mailing list