[PATCH v5 00/16] PCI: dwc: Cache PCIe capability offset

Manivannan Sadhasivam mani at kernel.org
Sat Nov 7 14:45:04 PST 2026


On Wed, 28 Oct 2026 11:06:36 +0800, Hans Zhang wrote:
> The DWC PCIe core and its platform drivers repeatedly call
> dw_pcie_find_capability(pci, PCI_CAP_ID_EXP) to obtain the offset of the
> PCI Express Capability structure, including in paths that run more than
> once such as link polling, suspend/resume and interrupt handlers.
> 
> Add a cached pcie_cap field to struct dw_pcie and a
> dw_pcie_get_pcie_cap() helper that performs the lookup on first use and
> caches the result, then convert the core and the 14 platform drivers
> that use PCI_CAP_ID_EXP.
> 
> [...]

Applied, thanks!

[01/16] PCI: dwc: Add pcie_cap field and caching helper
        commit: d018ff4be8961981828e75afd36eef90cc524cd8
[02/16] PCI: dwc: Use cached PCIe capability offset in core
        commit: f83a7b55517012496bd9539fbbdeeecf0d1e9ff9
[03/16] PCI: dwc: imx6: Use cached PCIe capability offset
        commit: 8472374576d300d36de20ad592fd1f39181b85a8
[04/16] PCI: dwc: layerscape-ep: Use cached PCIe capability offset
        commit: 87427cc9d7115088e92e8c92c282e28481c9b26b
[05/16] PCI: dwc: meson: Use cached PCIe capability offset
        commit: 53f9ed3d6807c6aa79944ed42b3362aa89192956
[06/16] PCI: dwc: rockchip: Use cached PCIe capability offset
        commit: bf5c3f4975010750c535b127cb3ab81951c7ffd0
[07/16] PCI: dwc: eswin: Use cached PCIe capability offset
        commit: 386b9fa49e26afbd76d934f136f68bc355791ce8
[08/16] PCI: dwc: fu740: Use cached PCIe capability offset
        commit: 6fba557b82f4996786d12676f554ad12e67e46d9
[09/16] PCI: dwc: intel-gw: Use cached PCIe capability offset
        commit: 02305ad3ad2f918ac009e8ae4c2df8c2b11dc0bc
[10/16] PCI: dwc: qcom-ep: Use cached PCIe capability offset
        commit: c489e1008df8a7456686ab637593582be63f14c9
[11/16] PCI: dwc: qcom: Use cached PCIe capability offset
        commit: 38af9eda49198b0b2e3d90324af6c5b00123d4ec
[12/16] PCI: dwc: sophgo: Use cached PCIe capability offset
        commit: 328c6d507696eb3b075efa6236cdc1c12a2a800c
[13/16] PCI: dwc: spacemit-k1: Use cached PCIe capability offset
        commit: ef2bc56f097aafdeee7fceb68d2ca9e4c6956dbf
[14/16] PCI: dwc: spear13xx: Use cached PCIe capability offset
        commit: ebd968f20c61b3d86165d9e1bc387044dcf73707
[15/16] PCI: dwc: tegra194: Use cached PCIe capability offset
        commit: 8078927bf27866ecc5251919ec6b41478ae620ac
[16/16] PCI: dwc: ultrarisc: Use cached PCIe capability offset
        commit: 64e2e54238dc1a63d4c8bd827d140bdffef05403

Best regards,
-- 
மணிவண்ணன் சதாசிவம்





More information about the linux-riscv mailing list