On Thu, Jul 01, 2004 at 03:48:55PM -0400, Alan Stern wrote: > Greg: > > This patch fixes a logical hole in the hub driver. It's possible for the > driver to be unbound from a hub without physically unplugging the hub. > For example, writing 0 into the bConfigurationValue attribute file will > have this effect. When this happens, we need to make sure that all the > child devices of the hub are logically disconnected and their ports > disabled. > > That's what this patch does. It's a little bit tricky because we can't > simply call usb_disconnect() from within the hub driver's disconnect() > routine. While that routine is running it holds the usb bus writelock, > but usb_disconnect() would try to acquire it again. Instead > schedule_work() is used, so after a brief delay the children will be > removed. > > Please apply.
Applied, thanks. I'm going to let all of these patches bake for a while in the -mm tree before sending them to Linus. Just fyi. Thanks for doing all of this work, it's looking much better. greg k-h ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel