]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: host-generic: Add common helpers for parsing Root Port properties
authorSherry Sun <sherry.sun@nxp.com>
Wed, 22 Apr 2026 09:35:39 +0000 (17:35 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 18 May 2026 23:01:06 +0000 (18:01 -0500)
commitb269bb5e4cc3cf04a592d516a3dc260d9d893f24
tree8a98f9497b529a0c442c1b1411527a88130b5b20
parente3d334156b593c465153700b3f9fbdcac5af9cbd
PCI: host-generic: Add common helpers for parsing Root Port properties

Introduce generic helper functions to parse Root Port device tree nodes and
extract common properties like reset GPIOs. This allows multiple PCI host
controller drivers to share the same parsing logic.

Define struct pci_host_port to hold common Root Port properties (currently
only list of PERST# GPIO descriptors) and add pci_host_common_parse_ports()
to parse Root Port nodes from device tree.

Also add the 'ports' list to struct pci_host_bridge to better maintain
parsed Root Port information.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260422093549.407022-3-sherry.sun@nxp.com
drivers/pci/controller/pci-host-common.c
drivers/pci/controller/pci-host-common.h
drivers/pci/probe.c
include/linux/pci.h