]> Gentwo Git Trees - linux/.git/commit
PCI: dwc: ep: Implement capability search using PCI core APIs
authorHans Zhang <18255117159@163.com>
Tue, 19 Aug 2025 14:58:28 +0000 (22:58 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Aug 2025 20:56:19 +0000 (15:56 -0500)
commit3a33020d22bff1650af59314b6faea7efb04bf89
tree0bfa555d67622e3126a8e782d92feafe697fa1f1
parent8ffc9f234fdf332310015d507ae22db9a2820d37
PCI: dwc: ep: Implement capability search using PCI core APIs

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

Use them in the DWC EP driver to implement dw_pcie_ep_find_capability()
instead of duplicating the algorithm.

Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250819145828.438541-1-18255117159@163.com
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware.h