Do not set the bus dying flag during DVACT_DEACTIVATE otherwise the
authormpi <mpi@openbsd.org>
Thu, 10 Jul 2014 20:57:40 +0000 (20:57 +0000)
committermpi <mpi@openbsd.org>
Thu, 10 Jul 2014 20:57:40 +0000 (20:57 +0000)
commit542f78185aaa325e6bf52d8142dd3069003b521e
tree93eb7dfd18125b1e42c4e7d37fe7ebce100ecbb2
parent6a49f6d01dd3e62efe9958a40a411ef3ce0301a2
Do not set the bus dying flag during DVACT_DEACTIVATE otherwise the
explore thread will not disconnect the root hub.  The flag will be
set before detaching the children, like it is done during a suspend-
resume cycle.

Fix a panic when unplugging a cardbus *hci(4).
sys/dev/usb/ehci.c
sys/dev/usb/ohci.c
sys/dev/usb/uhci.c