Linux PCI subsystem development
 help / color / mirror / Atom feed
* [v6 0/5] Introduce generic capability search functions
@ 2025-03-23 16:48 Hans Zhang
  2025-03-23 16:48 ` [v6 1/5] PCI: " Hans Zhang
                   ` (4 more replies)
  0 siblings, 5 replies; 34+ messages in thread
From: Hans Zhang @ 2025-03-23 16:48 UTC (permalink / raw)
  To: lpieralisi
  Cc: kw, manivannan.sadhasivam, robh, bhelgaas, jingoohan1,
	thomas.richard, linux-pci, linux-kernel, Hans Zhang

1. Introduce generic capability search functions.
2. dwc/cdns use common PCI host bridge APIs for finding the capabilities.
3. Use cdns_pcie_find_*capability to avoid hardcode.
4. Add new patch for MAINTAINERS.

Changes since v5:
- If you put the helpers in drivers/pci/pci.c, they unnecessarily enlarge
  the kernel's .text section even if it's known already at compile time
  that they're never going to be used (e.g. on x86).
- Move the API for find capabilitys to a new file called
  pci-host-helpers.c.
- Add new patch for MAINTAINERS.

Changes since v4:
- Resolved [v4 1/4] compilation warning.
- The patch subject and commit message were modified.

Changes since v3:
- Resolved [v3 1/4] compilation error.
- Other patches are not modified.

Changes since v2:
- Add and split into a series of patches.

Hans Zhang (5):
  PCI: Introduce generic capability search functions
  PCI: dwc: Use common PCI host bridge APIs for finding the capabilities
  PCI: cadence: Use common PCI host bridge APIs for finding the
    capabilities
  PCI: cadence: Use cdns_pcie_find_*capability to avoid hardcode.
  MAINTAINERS: Add entry for PCI host controller helpers

 MAINTAINERS                                   |  6 ++
 drivers/pci/controller/Kconfig                | 17 ++++
 drivers/pci/controller/Makefile               |  1 +
 drivers/pci/controller/cadence/Kconfig        |  1 +
 .../pci/controller/cadence/pcie-cadence-ep.c  | 40 ++++----
 drivers/pci/controller/cadence/pcie-cadence.c | 25 +++++
 drivers/pci/controller/cadence/pcie-cadence.h |  8 +-
 drivers/pci/controller/dwc/Kconfig            |  1 +
 drivers/pci/controller/dwc/pcie-designware.c  | 71 +-------------
 drivers/pci/controller/pci-host-helpers.c     | 98 +++++++++++++++++++
 drivers/pci/pci.h                             |  7 ++
 11 files changed, 187 insertions(+), 88 deletions(-)
 create mode 100644 drivers/pci/controller/pci-host-helpers.c


base-commit: a1cffe8cc8aef85f1b07c4464f0998b9785b795a
-- 
2.25.1


^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2025-04-01 13:21 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-23 16:48 [v6 0/5] Introduce generic capability search functions Hans Zhang
2025-03-23 16:48 ` [v6 1/5] PCI: " Hans Zhang
2025-03-24 13:28   ` Ilpo Järvinen
2025-03-24 14:39     ` Hans Zhang
2025-03-24 14:52       ` Ilpo Järvinen
2025-03-25  2:58         ` Hans Zhang
2025-03-27 16:57   ` Manivannan Sadhasivam
2025-03-28  9:41     ` Hans Zhang
2025-03-27 16:58   ` Manivannan Sadhasivam
2025-03-28  9:42     ` Hans Zhang
2025-03-23 16:48 ` [v6 2/5] PCI: dwc: Use common PCI host bridge APIs for finding the capabilities Hans Zhang
2025-03-23 16:48 ` [v6 3/5] PCI: cadence: " Hans Zhang
2025-03-23 18:33   ` kernel test robot
2025-03-24  1:07     ` Hans Zhang
2025-03-23 19:26   ` kernel test robot
2025-03-24  1:08     ` Hans Zhang
2025-03-24 13:44   ` Ilpo Järvinen
2025-03-24 14:29     ` Hans Zhang
2025-03-24 15:02       ` Ilpo Järvinen
2025-03-25  2:59         ` Hans Zhang
2025-03-25 11:15           ` Ilpo Järvinen
2025-03-25 12:16             ` Hans Zhang
2025-03-25 14:47               ` Hans Zhang
2025-03-25 15:18                 ` Ilpo Järvinen
2025-03-25 15:37                   ` Hans Zhang
2025-03-28 10:33                     ` Hans Zhang
2025-03-28 11:42                       ` Ilpo Järvinen
2025-03-29 16:03                         ` Hans Zhang
2025-03-31 16:39                           ` Ilpo Järvinen
2025-04-01 13:20                             ` Hans Zhang
2025-03-23 16:48 ` [v6 4/5] PCI: cadence: Use cdns_pcie_find_*capability to avoid hardcode Hans Zhang
2025-03-23 16:48 ` [v6 5/5] MAINTAINERS: Add entry for PCI host controller helpers Hans Zhang
2025-03-27 17:01   ` Manivannan Sadhasivam
2025-03-28 10:36     ` Hans Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox