]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a temporary workaround to the panic on boot with hub attached and
authorimp <imp@FreeBSD.org>
Wed, 22 Sep 2004 06:02:10 +0000 (06:02 +0000)
committerimp <imp@FreeBSD.org>
Wed, 22 Sep 2004 06:02:10 +0000 (06:02 +0000)
commit61ceff0a793bf1a42ba60223b7497efc2aa55cad
tree980a6d115c2bcb48ae695212ae4a62d3776aba50
parenta6bec8ad06399f6bbb0400f2687dcbcf9194bcaa
Add a temporary workaround to the panic on boot with hub attached and
panic on hub detach bugs that have been reported.  This work around
detaches the device before deleting it.  This changes the detach order
from in-order to pre-order.  This avoids uhub's deleting the children
after its subdevs has been deleted.

This is only a workaround.  This leads to a strange condition in the
device tree where attached devices are children of detached ones.  I
really don't know what that's supposed to mean, but does violate my
sense of POLA.  Fortunately, the violation is short lived, which is
why I'm going ahead and committing the work around.

# We really need to consider life w/o the multiple nested layers of
# compatibility macros.  They make finding bugs like this *MUCH*
# harder.

Patch by: iadowse

MT5 before: next_release(5.3-BETA5) (unless someting better comes along)
sys/dev/usb/usb_port.h