Author: mav
Date: Sat May 22 03:19:30 2010
New Revision: 208409
URL: http://svn.freebsd.org/changeset/base/208409

Log:
  Honor hw.pci.do_power_nodriver on resume. Power-down devices without
  driver attached.

Modified:
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c      Sat May 22 01:01:59 2010        (r208408)
+++ head/sys/dev/pci/pci.c      Sat May 22 03:19:30 2010        (r208409)
@@ -2988,6 +2988,8 @@ pci_resume(device_t dev)
 
                /* Now the device is powered up, restore its config space. */
                pci_cfg_restore(child, dinfo);
+               if (!device_is_attached(child))
+                       pci_cfg_save(child, dinfo, 1);
        }
        free(devlist, M_TEMP);
        return (bus_generic_resume(dev));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to