Honor hw.pci.do_power_nodriver on resume. Power-down devices without

driver attached.
This commit is contained in:
Alexander Motin 2010-05-22 03:19:30 +00:00
parent 00fdbea7b2
commit 75f5385157

View File

@ -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));