]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
PCI/ERR: Retain status from error notification
authorKeith Busch <kbusch@kernel.org>
Mon, 4 Jan 2021 23:02:58 +0000 (15:02 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:39:54 +0000 (13:39 -0500)
commita4e867db05279b324cf79154106d8fd1f8338aa4
tree2e2d77df7d165c42172fde1fc1a7d404cd3a74e7
parent6f469adbdd38240c563a644149dda81c1ed4e8f2
PCI/ERR: Retain status from error notification

BugLink: https://bugs.launchpad.net/bugs/1919492
[ Upstream commit 387c72cdd7fb6bef650fb078d0f6ae9682abf631 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/pci/pcie/err.c