PCI/ERR: Clear AER status only when we control AER
authorSean V Kelley <sean.v.kelley@intel.com>
Tue, 24 Nov 2020 16:55:30 +0000 (10:55 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2020 17:18:58 +0000 (11:18 -0600)
commitaa344bc8b727b47b4350b59d8166216a3f351e55
tree63f5eb611461fb68a684cc24bd925625e5eed309
parent05e9ae19ab83881a0f33025bd1288e41e552a34b
PCI/ERR: Clear AER status only when we control AER

In some cases a bridge may not exist as the hardware controlling may be
handled only by firmware and so is not visible to the OS. This scenario is
also possible in future use cases involving non-native use of RCECs by
firmware. In this scenario, we expect the platform to retain control of the
bridge and to clear error status itself.

Clear error status only when the OS has native control of AER.

Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/err.c