Author: jkim
Date: Tue Oct 19 18:43:11 2010
New Revision: 214068
URL: http://svn.freebsd.org/changeset/base/214068

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

Modified:
  head/sys/dev/acpica/acpi_pci.c

Modified: head/sys/dev/acpica/acpi_pci.c
==============================================================================
--- head/sys/dev/acpica/acpi_pci.c      Tue Oct 19 18:32:01 2010        
(r214067)
+++ head/sys/dev/acpica/acpi_pci.c      Tue Oct 19 18:43:11 2010        
(r214068)
@@ -190,7 +190,7 @@ acpi_pci_set_powerstate_method(device_t 
                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:
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to