From d785fc2581eeec9fca9e7dab9ed758fe7af8fed1 Mon Sep 17 00:00:00 2001 From: mav Date: Sat, 22 May 2010 03:19:30 +0000 Subject: Honor hw.pci.do_power_nodriver on resume. Power-down devices without driver attached. --- sys/dev/pci/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index f4b7afe..04e8c5f 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -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)); -- cgit v1.1