Use a separate varaible to signal a "dead" controller (that has disappeared
authorkettenis <kettenis@openbsd.org>
Fri, 15 Jul 2022 07:52:06 +0000 (07:52 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 15 Jul 2022 07:52:06 +0000 (07:52 +0000)
commit94e125fc9a5822617f08b07aca3c1369f96aeed3
tree4858879740b1ff7cc414f1201a0f765395816617
parent03c435fef76995afbdc48b56ab2098da7b3fbe53
Use a separate varaible to signal a "dead" controller (that has disappeared
from the bus, probably because of hot(un)plugging it).  This makes sure
that we still ack interrupts that arrive while the controller is "dying"
(when we go down into suspend or if an unrecoverable hardware error
occurs).  Fixes an interrupt storm when we suspend on Amlogic arm64 boards.

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