Re: [RFC PATCH] cxl: Use pci_find_vsec_capability() to simplify the code

2023-08-23 Thread Michael Ellerman
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

Re: [RFC PATCH] cxl: Use pci_find_vsec_capability() to simplify the code

2023-08-06 Thread Andrew Donnellan
On Fri, 2023-08-04 at 15:56 +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

[RFC PATCH] cxl: Use pci_find_vsec_capability() to simplify the code

2023-08-04 Thread Xiongfeng Wang
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