aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2020-01-29 16:59:58 -0600
committerBjorn Helgaas <bhelgaas@google.com>2020-01-29 16:59:58 -0600
commitf629ddc9cd3d88363f58ad3130165fcdff837779 (patch)
treea2547e64bd1572d162cefc5bcd00edf646bf610f /drivers/pci
parentMerge branch 'pci/p2pdma' (diff)
parentPCI/PM: Print config space of devices before suspend (diff)
downloadlinux-dev-f629ddc9cd3d88363f58ad3130165fcdff837779.tar.xz
linux-dev-f629ddc9cd3d88363f58ad3130165fcdff837779.zip
Merge branch 'pci/pm'
- Print config space before suspend for debugging (Chen Yu) * pci/pm: PCI/PM: Print config space of devices before suspend
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index e87196cc1a7f..34cde70440c3 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -1372,8 +1372,11 @@ int pci_save_state(struct pci_dev *dev)
{
int i;
/* XXX: 100% dword access ok here? */
- for (i = 0; i < 16; i++)
+ for (i = 0; i < 16; i++) {
pci_read_config_dword(dev, i * 4, &dev->saved_config_space[i]);
+ pci_dbg(dev, "saving config space at offset %#x (reading %#x)\n",
+ i * 4, dev->saved_config_space[i]);
+ }
dev->state_saved = true;
i = pci_save_pcie_state(dev);