]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI/AER: Clear error status registers during enumeration and restore
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Thu, 17 Sep 2015 15:09:37 +0000 (10:09 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 17 Sep 2015 15:09:37 +0000 (10:09 -0500)
commitb07461a8e45b7a62ef7fb46e4f6ada66f63406a8
tree12277d58e51673ad9f1679d44c3392f4af9c011b
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
PCI/AER: Clear error status registers during enumeration and restore

AER errors might be recorded when powering-on devices.  These errors can be
ignored, so firmware usually clears them before the OS enumerates devices.
However, firmware is not involved when devices are added via hotplug, so
the OS may discover power-up errors that should be ignored.  The same may
happen when powering up devices when resuming after suspend.

Clear the AER error status registers during enumeration and resume.

[bhelgaas: changelog, remove repetitive comments]
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c
drivers/pci/pcie/aer/aerdrv_core.c
drivers/pci/probe.c
include/linux/aer.h