PCI/ERR: Clear status of the reporting device
authorKeith Busch <kbusch@kernel.org>
Mon, 4 Jan 2021 23:02:56 +0000 (15:02 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 23:10:10 +0000 (17:10 -0600)
commit7d7cbeaba5b7aea8e1e4eb988d6b5e7cb3c34490
tree26db03b1f6f81fb6cf845dbe6018053e1ad8e5fb
parent7c53f6b671f4aba70ff15e1b05148b10d58c2837
PCI/ERR: Clear status of the reporting device

Error handling operates on the first Downstream Port above the detected
error, but the error may have been reported by a downstream device.
Clear the AER status of the device that reported the error rather than
the first Downstream Port.

Link: https://lore.kernel.org/r/20210104230300.1277180-2-kbusch@kernel.org
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