]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: correct the usb_disconnect() comment about usb_bus_list_lock
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Sep 2013 19:57:34 +0000 (13:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 16:45:40 +0000 (09:45 -0700)
usb_disconnect() no longer acquires usb_bus_list_lock, so update its
comment to that effect.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c

index 6f783bfe29593f74b8e4d197028179289675b980..6d97cf7be048a698b28b96191a4bf00dda3f6542 100644 (file)
@@ -2023,8 +2023,8 @@ static void hub_free_dev(struct usb_device *udev)
  * Something got disconnected. Get rid of it and all of its children.
  *
  * If *pdev is a normal device then the parent hub must already be locked.
- * If *pdev is a root hub then this routine will acquire the
- * usb_bus_list_lock on behalf of the caller.
+ * If *pdev is a root hub then the caller must hold the usb_bus_list_lock,
+ * which protects the set of root hubs as well as the list of buses.
  *
  * Only hub drivers (including virtual root hub drivers for host
  * controllers) should ever call this.