Skip to content

PCI: dwc: Add multi-port controller support

Sumit Kumar imx linux-amlogic linux-arm-kernel linux-arm-msm linux-pci linux-renesas-soc linux-riscv linux-samsung-soc linux-tegra lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20251010-dt-parser-98b50ce18fc1

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Fix error code preservation in dw_pcie_resume_noirq() to return actual
error from dw_pcie_wait_for_link() instead of hardcoded -ETIMEDOUT (Mani).
- Initialize ret variable to -ENOENT in dw_pcie_parse_root_ports() (Mani).
- dw_pcie_host_init(): Remove -ENOENT error skipping to make parsing
failures fatal for now, add TODO comment about making properties
optional later (Mani).
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PCI: API changes for multi-port controller supportdrivers/pci/of.c drivers/pci/pci.h+6 -20 replies
2/2PCI: dwc: Add multi-port controller supportdrivers/pci/controller/dwc/pci-exynos.c drivers/pci/controller/dwc/pci-imx6.c drivers/pci/controller/dwc/pci-meson.c +11 more+226 -720 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchNeil Armstrong
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] PCI: dwc: Add multi-port controller support

This series adds support for multi-port PCIe controllers in the DesignWare driver. Currently, the driver only supports a single Root Port with controller-level properties, which doesn't work for multi-port controllers where each port may have different configurations.

This series introduces a per-port structure and parsing API that allows each Root Port to be configured independently via pcie@N child nodes in device tree, while maintaining backward compatibility with existing single-port bindings.

---
Changes in v2:
- Fix error code preservation in dw_pcie_resume_noirq() to return actual
error from dw_pcie_wait_for_link() instead of hardcoded -ETIMEDOUT (Mani).
- Initialize ret variable to -ENOENT in dw_pcie_parse_root_ports() (Mani).
- dw_pcie_host_init(): Remove -ENOENT error skipping to make parsing
failures fatal for now, add TODO comment about making properties
optional later (Mani).
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Sumit Kumar (2):
PCI: API changes for multi-port controller support
PCI: dwc: Add multi-port controller support

 drivers/pci/controller/dwc/pci-exynos.c           |   4 +-
 drivers/pci/controller/dwc/pci-imx6.c             |  15 +-
 drivers/pci/controller/dwc/pci-meson.c            |   1 -
 drivers/pci/controller/dwc/pcie-designware-host.c | 175 ++++++++++++++++++----
 drivers/pci/controller/dwc/pcie-designware.c      |  32 ++--
 drivers/pci/controller/dwc/pcie-designware.h      |  17 ++-
 drivers/pci/controller/dwc/pcie-fu740.c           |   6 +-
 drivers/pci/controller/dwc/pcie-intel-gw.c        |  13 +-
 drivers/pci/controller/dwc/pcie-qcom-common.c     |   5 +-
 drivers/pci/controller/dwc/pcie-qcom-ep.c         |   4 +-
 drivers/pci/controller/dwc/pcie-qcom.c            |   4 +-
 drivers/pci/controller/dwc/pcie-rcar-gen4.c       |  13 +-
 drivers/pci/controller/dwc/pcie-spear13xx.c       |   5 +-
 drivers/pci/controller/dwc/pcie-tegra194.c        |   4 +-
 drivers/pci/of.c                                  |   6 +-
 drivers/pci/pci.h                                 |   2 +
 16 files changed, 232 insertions(+), 74 deletions(-)

---
base-commit: 097a6c336d0080725c626fda118ecfec448acd0f
change-id: 20251010-dt-parser-98b50ce18fc1

Best regards,

Signature · 1 line
Sumit Kumar <[email protected]>