When detaching devices when we suspend, we need to continue processing
authorkettenis <kettenis@openbsd.org>
Sun, 16 Jul 2023 09:33:18 +0000 (09:33 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 16 Jul 2023 09:33:18 +0000 (09:33 +0000)
commit5b24870b0b8fb52cfc1715886eaf8cb3e9fe99c6
tree73b143b7e2924ebfbad7075ed8fb3adb32aa9dbb
parent27f6552026939f5989253fcbcf82cf7d4dee1ba5
When detaching devices when we suspend, we need to continue processing
command completion events.  So only return early in xhci_softintr() if
the controller is dead instead of dying.  This fixes USB suspend/resume
in Apple M1/M2.

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