aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2018-06-30 15:07:17 -0500
committerBjorn Helgaas <bhelgaas@google.com>2018-07-19 16:17:03 -0500
commitdb89ccbe52c7885644ba578c7771e57620f879b1 (patch)
treeb64d2f860d9c3b47eb9abf529c6c5424a074ff1a /drivers/pci/probe.c
parentPCI/AER: Move internal declarations to drivers/pci/pci.h (diff)
downloadlinux-dev-db89ccbe52c7885644ba578c7771e57620f879b1.tar.xz
linux-dev-db89ccbe52c7885644ba578c7771e57620f879b1.zip
PCI/AER: Define aer_stats structure for AER capable devices
Define a structure to hold the AER statistics. There are 2 groups of statistics: dev_* counters that are to be collected for all AER capable devices and rootport_* counters that are collected for all (AER capable) rootports only. Allocate and free this structure when device is added or released (thus counters survive the lifetime of the device). Signed-off-by: Rajat Jain <rajatja@google.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index ac876e32de4b..48edd0c9e4bc 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -2064,6 +2064,7 @@ static void pci_configure_device(struct pci_dev *dev)
static void pci_release_capabilities(struct pci_dev *dev)
{
+ pci_aer_exit(dev);
pci_vpd_release(dev);
pci_iov_release(dev);
pci_free_cap_save_buffers(dev);