diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-12-20 09:12:40 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-12-20 09:12:40 -0500 |
commit | 63d15e8c2ac134b3fd5460d19043ffde6f6eeb61 (patch) | |
tree | 7425de21c71f279a92f1c636892baa2fdfe276e7 | |
parent | 56026645e2b6f11ede34a5e6ab69d3eb56f9c8fc (diff) | |
parent | 5839ee7389e893a31e4e3c9cf17b50d14103c902 (diff) |
Merge branch 'pm-pci'
* pm-pci:
PCI / PM: Force devices to D0 in pci_pm_thaw_noirq()
-rw-r--r-- | drivers/pci/pci-driver.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 945099d49f8f..14fd865a5120 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -1012,7 +1012,12 @@ static int pci_pm_thaw_noirq(struct device *dev) | |||
1012 | if (pci_has_legacy_pm_support(pci_dev)) | 1012 | if (pci_has_legacy_pm_support(pci_dev)) |
1013 | return pci_legacy_resume_early(dev); | 1013 | return pci_legacy_resume_early(dev); |
1014 | 1014 | ||
1015 | pci_update_current_state(pci_dev, PCI_D0); | 1015 | /* |
1016 | * pci_restore_state() requires the device to be in D0 (because of MSI | ||
1017 | * restoration among other things), so force it into D0 in case the | ||
1018 | * driver's "freeze" callbacks put it into a low-power state directly. | ||
1019 | */ | ||
1020 | pci_set_power_state(pci_dev, PCI_D0); | ||
1016 | pci_restore_state(pci_dev); | 1021 | pci_restore_state(pci_dev); |
1017 | 1022 | ||
1018 | if (drv && drv->pm && drv->pm->thaw_noirq) | 1023 | if (drv && drv->pm && drv->pm->thaw_noirq) |