[PATCH 0/2] introduce pci_find_next_dvsec_capability() to simplify the code

Xiongfeng Wang wangxiongfeng2 at huawei.com
Mon Aug 7 13:18:44 AEST 2023


Some devices may have several DVSEC(Designated Vendor-Specific Extended
Capability) entries with the same DVSEC ID. Introduce
pci_find_next_dvsec_capability() to simplify the code.

Xiongfeng Wang (2):
  PCI: Add pci_find_next_dvsec_capability to find next designated VSEC
  ocxl: use pci_find_next_dvsec_capability() to simplify the code

 arch/powerpc/platforms/powernv/ocxl.c | 20 ++-------------
 drivers/misc/ocxl/config.c            | 21 +++++----------
 drivers/pci/pci.c                     | 37 ++++++++++++++++++---------
 include/linux/pci.h                   |  2 ++
 include/misc/ocxl-config.h            |  4 ---
 5 files changed, 35 insertions(+), 49 deletions(-)

-- 
2.20.1



More information about the Linuxppc-dev mailing list