Speed up uhub attachment considerably. Rather than powering up each port
commitac58358d545f15ff5cfb9608d0ee17d51a0dab3c
authorHasso Tepper <hasso@dragonflybsd.org>
Fri, 25 Jan 2008 08:49:47 +0000 (25 08:49 +0000)
committerHasso Tepper <hasso@dragonflybsd.org>
Fri, 25 Jan 2008 08:49:47 +0000 (25 08:49 +0000)
tree47a95e1051ae5212801b6e8cab41f7116015e5af
parentcf07389d2f982f59eab857b1e2f978975b8ac973
Speed up uhub attachment considerably. Rather than powering up each port
individually then waiting for it to become stable, power them up all
at once and then delay. Don't even bother delaying if we are a root hub,
as this is handled separately in the event thread.

My laptop boot time is cut down from 30 sec to 25 sec with this change.

Obtained-from: OpenBSD via NetBSD
sys/bus/usb/uhub.c