]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: qcom: Add support for parsing the new Root Port binding
authorKrishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Wed, 2 Jul 2025 11:20:42 +0000 (16:50 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Jul 2025 18:22:09 +0000 (13:22 -0500)
commita2fbecdbbb9d7706fd3ec25f0dead83a2d542943
tree85993571a2adfb386b13b87d88df7dda59c8feee
parent38fcbfbd4207ec3fe47f66c2a16df7f5a857e198
PCI: qcom: Add support for parsing the new Root Port binding

The DT binding has moved the PHY, PERST# properties to Root Port node from
the Host Bridge node. So add support for parsing the new binding. The new
binding uses 'reset-gpios' property for PERST#, hence parse the same
property in the driver instead of the legacy 'perst-gpios'.

To maintain DT backwards compatibility, fallback to the legacy method of
parsing the host bridge node if the properties are not present in the Root
Port node.

Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
[mani: refactored the root port parsing code, fixed a bug & commit message rewording]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250702-perst-v5-2-920b3d1f6ee1@qti.qualcomm.com
drivers/pci/controller/dwc/pcie-qcom.c