Date: Wed, 22 Sep 2004 06:02:10 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb usb_port.h Message-ID: <200409220602.i8M62AGf011468@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2004-09-22 06:02:10 UTC
FreeBSD src repository
Modified files:
sys/dev/usb usb_port.h
Log:
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)
Revision Changes Path
1.68 +1 -0 src/sys/dev/usb/usb_port.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409220602.i8M62AGf011468>
