]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit7cc3bf832b1bda9b9de35de50f638283517d9392
treecc47350df18dd7bf00a3adb136476e1896f20c19
parentb0a2b5b78de0e7d9dfa79821c21ca21121984e40
[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