PCI/AER: Don't read upstream ports below fatal errors
authorKeith Busch <keith.busch@intel.com>
Thu, 20 Sep 2018 16:27:10 +0000 (10:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Sep 2018 17:18:09 +0000 (12:18 -0500)
commit9d938ea53b265ed6df6cdd1715d971f0235fdbfc
treed7fbcc1e257bcd6e419d86bbbca616b4e68dc707
parent60271ab044a53edb9dcbe76bebea2221c4ff04d9
PCI/AER: Don't read upstream ports below fatal errors

The AER driver has never read the config space of an endpoint that reported
a fatal error because the link to that device is considered unreliable.

An ERR_FATAL from an upstream port almost certainly indicates an error on
its upstream link, so we can't expect to reliably read its config space for
the same reason.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Sinan Kaya <okaya@kernel.org>
drivers/pci/pcie/aer.c