]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 8 Apr 2016 13:25:10 +0000 (16:25 +0300)
committerJiri Slaby <jslaby@suse.cz>
Tue, 28 Mar 2017 13:49:03 +0000 (15:49 +0200)
commitaa11eaeb2eb9f7ba81b1cbbf0f7394c2abf3b659
tree454a8c1a4d1fb48ab1f889914d6ba90c57b6e46a
parent6e7c509e66b369ff27f0d2873cd0af14160e150d
xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers

commit 98d74f9ceaefc2b6c4a6440050163a83be0abede upstream.

PCI hotpluggable xhci controllers such as some Alpine Ridge solutions will
remove the xhci controller from the PCI bus when the last USB device is
disconnected.

Add a flag to indicate that the host is being removed to avoid queueing
configure_endpoint commands for the dropped endpoints.
For PCI hotplugged controllers this will prevent 5 second command timeouts
For static xhci controllers the configure_endpoint command is not needed
in the removal case as everything will be returned, freed, and the
controller is reset.

For now the flag is only set for PCI connected host controllers.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h