Make any PCI devices enumerated in ACPI tree honor do_power_resume as well.

This commit is contained in:
jkim 2010-10-19 18:43:11 +00:00
parent 68ea32374c
commit 3a7013e945

View File

@ -190,7 +190,7 @@ acpi_pci_set_powerstate_method(device_t dev, device_t child, int state)
device_printf(dev,
"Failed to set ACPI power state D%d on %s: %s\n",
state, acpi_name(h), AcpiFormatException(status));
if (old_state > state)
if (old_state > state && pci_do_power_resume)
error = pci_set_powerstate_method(dev, child, state);
out: