mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Honor hw.pci.do_power_nodriver on resume. Power-down devices without
driver attached.
This commit is contained in:
parent
00fdbea7b2
commit
75f5385157
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue