]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: amd-mdb: Add support for PCIe RP PERST# signal handling
authorSai Krishna Musham <sai.krishna.musham@amd.com>
Thu, 7 Aug 2025 07:40:19 +0000 (13:10 +0530)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 11 Aug 2025 10:39:45 +0000 (16:09 +0530)
commit1d0156c8b230ca74272708a3206684e6d6157302
tree32b9af07da2fd63d4954667cbe5da4976112947d
parent0b9275edc3543d0d2d03313a7c8de5157d61b189
PCI: amd-mdb: Add support for PCIe RP PERST# signal handling

Add support for handling the AMD Versal Gen 2 MDB PCIe Root Port PERST#
signal via a GPIO by parsing the new PCIe bridge node to acquire the
reset GPIO. If the bridge node is not found, fall back to acquiring it
from the PCIe host bridge node.

As part of this, update the interrupt controller node parsing to use
of_get_child_by_name() instead of of_get_next_child(), since the PCIe
host bridge node now has multiple children. This ensures the correct
node is selected during initialization.

Signed-off-by: Sai Krishna Musham <sai.krishna.musham@amd.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20250807074019.811672-3-sai.krishna.musham@amd.com
drivers/pci/controller/dwc/pcie-amd-mdb.c