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