PCI/DPC: Save and restore config state
authorKeith Busch <keith.busch@intel.com>
Thu, 20 Sep 2018 16:27:08 +0000 (10:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Sep 2018 21:06:27 +0000 (16:06 -0500)
commit4f802170a861265680cad03f47b19c4c3a137052
treebcc27a181369ca9722b10235f706eca64b7fdf6e
parent874b3251113a1e2cbe79c24994dc03fe4fe4b99b
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>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/pcie/dpc.c