PCI/AER: Clear only ERR_NONFATAL bits during non-fatal recovery
authorOza Pawandeep <poza@codeaurora.org>
Thu, 19 Jul 2018 22:58:05 +0000 (17:58 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Jul 2018 20:27:08 +0000 (15:27 -0500)
commite7b0b847de6db161e3917732276e425bc92a2feb
tree5eb8faf9a1814f1b863ba66334cae54a5c78d212
parent7ab92e89bf8b0a93f0d53b6d83270e4cd0f7c563
PCI/AER: Clear only ERR_NONFATAL bits during non-fatal recovery

pci_cleanup_aer_uncorrect_error_status() is called by driver .slot_reset()
methods when handling ERR_NONFATAL errors.  Previously this cleared *all*
the bits, including ERR_FATAL bits.

Since we're only handling ERR_NONFATAL errors, clear only the ERR_NONFATAL
error status bits.

Signed-off-by: Oza Pawandeep <poza@codeaurora.org>
[bhelgaas: split to separate patch]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer.c