pci_host_common_parse_port(9)
π pci_host_common_parse_port(9) π
β¨ NAME β¨
pci_host_common_parse_port β Parse a single Root Port node. okay bestie, welcome to the pci_host_common_parse_port(9) page in the Kernel API Manual β this one is all about parsing one Root Port node, and we're gonna get into it. π
πΈ SYNOPSIS πΈ
here's the exact signature, no cap:
int pci_host_common_parse_port (struct device *dev , struct
pci_host_bridge *bridge , struct device_node *node );
π¦ ARGUMENTS π¦
devβ Device pointer. literally the device pointer, bestie. πbridgeβ PCI host bridge. the host bridge in question. πnodeβ Device tree node of the Root Port. yep, the DT node for the Root Port. π³
π DESCRIPTION π
okay so this helper parses Root Port properties from the device tree. Currently it only handles the PERST# GPIO β and yes, that includes PERST# GPIOs from all PCIe bridge nodes under this Root Port β and that GPIO is optional. β¨
π NOTE π
bestie, read this twice: this helper fetches resources (likePERST#GPIO) optionally. If a controller driver has a hard dependency on certain resources (PHY,clocks,regulators, etc.), those resources MUST be modeled correctly in the DT binding and validated in DTS. This helper cannot enforce such dependencies and the driver may fail to operate if required resources are missing. π
π RETURN π
0 on success, negative error codes on failure. periodt. π«Ά
β SEE ALSO β
- Kernel file:
./drivers/pci/controller/pci-host-common.c pci_host_common_delete_ports(9)pci_host_common_parse_perst(9)pci_host_common_parse_ports(9)pci_host_common_d3cold_possible(9)
mwah π this page came from ./drivers/pci/controller and itβs dated October 2026 β bye bestie, go slay that Root Port parsing! β¨π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms