diff options
author | Keith Busch <keith.busch@intel.com> | 2018-09-20 19:27:08 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-09-21 00:06:27 +0300 |
commit | 4f802170a861265680cad03f47b19c4c3a137052 (patch) | |
tree | bcc27a181369ca9722b10235f706eca64b7fdf6e /drivers/pci/pci.c | |
parent | 874b3251113a1e2cbe79c24994dc03fe4fe4b99b (diff) | |
download | linux-4f802170a861265680cad03f47b19c4c3a137052.tar.xz |
PCI/DPC: Save and restore config state
This patch provides DPC save and restore capabilities. This is necessary
for the driver to observe DPC events in the event the configuration space
needs to be restored after a reset.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Sinan Kaya <okaya@kernel.org>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 0e54588825cb..d6bb56fbee6d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1284,6 +1284,7 @@ int pci_save_state(struct pci_dev *dev) if (i != 0) return i; + pci_save_dpc_state(dev); return pci_save_vc_state(dev); } EXPORT_SYMBOL(pci_save_state); @@ -1378,6 +1379,7 @@ void pci_restore_state(struct pci_dev *dev) pci_restore_ats_state(dev); pci_restore_vc_state(dev); pci_restore_rebar_state(dev); + pci_restore_dpc_state(dev); pci_cleanup_aer_error_status_regs(dev); |