]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Don't fallback to bus reset after failed slot reset
authorKeith Busch <kbusch@kernel.org>
Tue, 21 Apr 2026 15:06:44 +0000 (08:06 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 27 Apr 2026 22:26:59 +0000 (17:26 -0500)
commitcfcbfe5cb11650d53f7cafd7adfd556690b77114
tree3ddc6ed42aca3aaafebe06e1cfff3bfc355e45eb
parent254f49634ee16a731174d2ae34bc50bd5f45e731
PCI: Don't fallback to bus reset after failed slot reset

If a bus has hotplug slots that implement the slot's reset_slot callback,
it is not safe to do the non-slot specific bus reset, so don't fallback to
it. If a slot reset does fail, the subsequent bus reset will attempt a 2nd
link reset on top of previous and fail to handle the hotplug events.

Fixes: 8238cb69c01fe ("PCI: Make reset_subordinate hotplug safe")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260421150644.3543733-1-kbusch@meta.com
drivers/pci/pci.c