Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02c018af authored by Chris Bainbridge's avatar Chris Bainbridge Committed by Greg Kroah-Hartman
Browse files

usb: host: xhci: remove incorrect comment about mutex



The comment stating that xhci_setup_device() is protected by the address
mutex is not true since
commit 6fecd4f2 ("USB: separate usb_address0 mutexes for each bus")
as xhci handles two buses.

Signed-off-by: default avatarChris Bainbridge <chris.bainbridge@gmail.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 22ae47e6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3764,8 +3764,6 @@ int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev)
/*
 * Issue an Address Device command and optionally send a corresponding
 * SetAddress request to the device.
 * We should be protected by the usb_address0_mutex in hub_wq's hub_port_init,
 * so we should only issue and wait on one address command at the same time.
 */
static int xhci_setup_device(struct usb_hcd *hcd, struct usb_device *udev,
			     enum xhci_setup_dev setup)