Re: [PATCH v2 0/2] PCI: dwc: Add multi-port controller support
From: Neil Armstrong
Date: Fri Mar 27 2026 - 10:10:19 EST
Le 05/03/2026 à 07:20, Sumit Kumar a écrit :
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.
Signed-off-by: Sumit Kumar <sumit.kumar@xxxxxxxxxxxxxxxx>
---
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/20260105-dt-parser-v1-0-b11c63cb5e2c@xxxxxxxxxxxxxxxx
---
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,
Tested on meson-pci (boot log https://gitlab.com/amlogic-foss/abcd-linux-test/-/jobs/13677061036)
Tested-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> # On Bananapi M2S
Thanks,
Neil