[PATCH] USB: Disconnect children when unbinding the hub driver
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 10 Aug 2005 21:12:31 +0000 (17:12 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Sep 2005 23:28:19 +0000 (16:28 -0700)
commitbf193d3cd2a3b73f2df74f57106114867946c09c
treecc47350df18dd7bf00a3adb136476e1896f20c19
parent8b28c7526a302bbfa618f7eab4ef961edd68c9a0
[PATCH] USB: Disconnect children when unbinding the hub driver

This patch (as554) makes the hub driver disconnect any child USB devices
when it is unbound from a hub.  Normally this will never happen, but
there are a few oddball ways to unbind the hub driver while leaving the
children intact.  For example, the new "unbind" sysfs attribute can be
used for this purpose.

Given that unbinding hubs with children is now safe, the patch also
removes the code that prevented people from doing so using usbfs.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c
drivers/usb/core/hub.c