svn commit: r208409 - head/sys/dev/pci
Alexander Motin
mav at FreeBSD.org
Sat May 22 03:19:31 UTC 2010
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));
More information about the svn-src-all
mailing list