diff options
author | Keith Busch <keith.busch@intel.com> | 2016-09-27 23:23:34 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-09-28 00:01:49 +0300 |
commit | 66b808099146166c44157600a166c8372172cd76 (patch) | |
tree | 6dfd3e4ab300a3a3d07a6d546f8a1404c5d0f105 /drivers/pci/probe.c | |
parent | 4b202b716e4e282c26c4a95952ea33e318c363ab (diff) | |
download | linux-66b808099146166c44157600a166c8372172cd76.tar.xz |
PCI/AER: Cache capability position
Save the position of the error reporting capability so it doesn't need to
be rediscovered during error handling.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Lukas Wunner <lukas@wunner.de>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 93f280df3428..157572420513 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1666,7 +1666,8 @@ static void pci_init_capabilities(struct pci_dev *dev) /* Enable ACS P2P upstream forwarding */ pci_enable_acs(dev); - pci_cleanup_aer_error_status_regs(dev); + /* Advanced Error Reporting */ + pci_aer_init(dev); } /* |