Switch off unreferenced power resources in DVACT_POWERDOWN instead of
authorkettenis <kettenis@openbsd.org>
Fri, 2 Aug 2024 09:28:35 +0000 (09:28 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 2 Aug 2024 09:28:35 +0000 (09:28 +0000)
commitce3373263d9dc90c389770245bfb2f9edf4f9f31
tree4e4e69395e1b42551ce5326eeec0d887fb6cf126
parent36d39fd5da3bdfafc932e788a5db8c906a71d4fc
Switch off unreferenced power resources in DVACT_POWERDOWN instead of
DVACT_SUSPEND.  Fixes an issue with (un)hibernate where we don't attach
xhci(4) controllers, which would make is turn the xhci(4) off inadvertedly
because its power resource wasn't referenced.

ok mlarkin@
sys/dev/acpi/acpipwrres.c