Message ID | 20180124161831.771200b7@w520.home (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 4a7c6864fdf4..f4f625a08094 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1117,7 +1117,7 @@ static void pci_restore_config_dword(struct pci_dev *pdev, int offset, u32 val; pci_read_config_dword(pdev, offset, &val); - if (val == saved_val) + if (!(pdev->dev_flags & PCI_DEV_FLAGS_RESTORE_ALL) && (val == saved_val)) return; for (;;) {