mbox series

[v2,0/2] Introduce pci_find_next_dvsec_capability() to simplify the code

Message ID 20230808040858.183568-1-wangxiongfeng2@huawei.com
Headers show
Series Introduce pci_find_next_dvsec_capability() to simplify the code | expand

Message

Xiongfeng Wang Aug. 8, 2023, 4:08 a.m. UTC
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.

ChangeLog:
v1->v2:  Add Reviewed-by and Acked-by tags
	 Modify commit message and document a little for the first patch

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                     | 39 ++++++++++++++++++---------
 include/linux/pci.h                   |  2 ++
 include/misc/ocxl-config.h            |  4 ---
 5 files changed, 36 insertions(+), 50 deletions(-)