PCI/ERR: Retain status from error notification
authorKeith Busch <kbusch@kernel.org>
Mon, 4 Jan 2021 23:02:58 +0000 (15:02 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 23:10:42 +0000 (17:10 -0600)
commit387c72cdd7fb6bef650fb078d0f6ae9682abf631
tree0de8c36bbbbbe4362564ca9c0177a8f24927d3f1
parent7a8a22be35a5058366429e311017e05206c43137
PCI/ERR: Retain status from error notification

Overwriting the frozen detected status with the result of the link reset
loses the NEED_RESET result that drivers are depending on for error
handling to report the .slot_reset() callback. Retain this status so
that subsequent error handling has the correct flow.

Link: https://lore.kernel.org/r/20210104230300.1277180-4-kbusch@kernel.org
Reported-by: Hinko Kocevar <hinko.kocevar@ess.eu>
Tested-by: Hedi Berriche <hedi.berriche@hpe.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Sean V Kelley <sean.v.kelley@intel.com>
Acked-by: Hedi Berriche <hedi.berriche@hpe.com>
drivers/pci/pcie/err.c