]> Gentwo Git Trees - linux/.git/commit
PCI: cadence: Implement capability search using PCI core APIs
authorHans Zhang <18255117159@163.com>
Wed, 13 Aug 2025 14:45:28 +0000 (22:45 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Aug 2025 20:56:19 +0000 (15:56 -0500)
commit18ac51ae9df925292a4d8ca6550a199924ae9e17
treefd34b58765eb88cd17ecae01f0ad48ecced60bf7
parent3a33020d22bff1650af59314b6faea7efb04bf89
PCI: cadence: Implement capability search using PCI core APIs

The PCI core now provides generic PCI_FIND_NEXT_CAP() and
PCI_FIND_NEXT_EXT_CAP() macros to search for PCI capabilities, using
config accessors we supply.

Use them in the CDNS driver to add cdns_pcie_find_capability() and
cdns_pcie_find_ext_capability() interfaces.

Signed-off-by: Hans Zhang <18255117159@163.com>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250813144529.303548-6-18255117159@163.com
drivers/pci/controller/cadence/pcie-cadence.c
drivers/pci/controller/cadence/pcie-cadence.h