Some Intel xhci(4) controllers don't fully power down unless they've seen
authorkettenis <kettenis@openbsd.org>
Tue, 6 Aug 2024 17:30:04 +0000 (17:30 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 6 Aug 2024 17:30:04 +0000 (17:30 +0000)
commit43e70c963284972205e5ad5beb2e3fcb895b03a1
tree683837412c13822563de74eb4d825d3d9e45a4bd
parentc80589b81c02cb6468a831c6cf3452be5637d885
Some Intel xhci(4) controllers don't fully power down unless they've seen
a "save state" command.  So use that command when we suspend (and don't
reset the controller at that point such that it doesn't forget about it).
Note that on resume we don't restore the state.  Instead we just reset
the controller and bring it up from scratch.  There isn't much state to
save anyway since we detach all USB devices when we suspend.

ok mlarkin@, deraadt@
sys/dev/usb/xhci.c