]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: amd-mdb: Assert PERST# on shutdown
authorSai Krishna Musham <sai.krishna.musham@amd.com>
Mon, 27 Apr 2026 12:12:27 +0000 (17:42 +0530)
committerManivannan Sadhasivam <mani@kernel.org>
Tue, 12 May 2026 13:13:21 +0000 (18:43 +0530)
commit0492461a0508d88f2b63de4f7f4e71b38078de20
tree51b3932183e3503dc0bb0502658bd3ed29fed225
parent254f49634ee16a731174d2ae34bc50bd5f45e731
PCI: amd-mdb: Assert PERST# on shutdown

Add a shutdown handler for the AMD MDB PCIe host controller that
asserts the PERST# signal via GPIO before the system powers off or
reboots. This ensures the connected PCIe endpoint is held in reset
during shutdown.

Signed-off-by: Sai Krishna Musham <sai.krishna.musham@amd.com>
[mani: removed conditional check since GPIO APIs return safely if desc is NULL]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260427121227.290604-1-sai.krishna.musham@amd.com
drivers/pci/controller/dwc/pcie-amd-mdb.c