]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Warn if a running device is unaware of reset
authorKeith Busch <kbusch@kernel.org>
Fri, 25 Oct 2024 22:27:55 +0000 (15:27 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Nov 2024 22:48:49 +0000 (16:48 -0600)
commita3151e6daaec171b7d46ac79170ec420ad874cae
tree04e4f66b4be38e3abdd74148500a86abe17390bb
parent2fa046449a82a7d0f6d9721dd83e348816038444
PCI: Warn if a running device is unaware of reset

If a reset is issued to a running device with a driver that didn't register
the notification callbacks, the driver may be unaware of this event and
have an inconsistent view of the device's state. Log a warning of this
event because there's nothing else indicating the event occured, which
could be confusing when debugging such situations.

Link: https://lore.kernel.org/r/20241025222755.3756162-2-kbusch@meta.com
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Amey Narkhede <ameynarkhede03@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
drivers/pci/pci.c