Upon resume, run usb_attach_roothub() in DVACT_WAKEUP rather than DVACT_RESUME.
authorderaadt <deraadt@openbsd.org>
Sun, 18 Aug 2024 02:59:51 +0000 (02:59 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 18 Aug 2024 02:59:51 +0000 (02:59 +0000)
commit545468f2bb35c1d5f9e2f59d74ecc0e8da17255f
treee902e19e9b8ee11de63a1ae6ffa157c334510427
parent159a3e96ea19197fc57448ff64e3d913d4c0ac71
Upon resume, run usb_attach_roothub() in DVACT_WAKEUP rather than DVACT_RESUME.
The usb root hub is a software construct, not actual hardware, and the code
has a potential to reach sleeping points (which won't work because DVACT_RESUME
runs cold).
sys/dev/usb/usb.c