Speed up uhub attachment considerably. Rather than powering up each port
commit58acad0b97027e203ff1152d68793e908001880a
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)
treec5b5a6c0163af752ab5ec07b7688018a049ad283
parent563b48450e5da9617c1e4eaed8026abe3d7036b2
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