Message ID | cover.1458126755.git.lukas@wunner.de (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
--- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1918,7 +1918,8 @@ EXPORT_SYMBOL(pci_wake_from_d3); */ static pci_power_t pci_target_state(struct pci_dev *dev) { - pci_power_t target_state = PCI_D3hot; + pci_power_t target_state = + (dev->current_state == PCI_D3cold) ? PCI_D3cold : PCI_D3hot; if (platform_pci_power_manageable(dev)) { /*