]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers
authorGuenter Roeck <linux@roeck-us.net>
Thu, 9 Mar 2017 13:39:37 +0000 (15:39 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:23:08 +0000 (09:23 +0100)
commitd42f0b5c13a7817074ea46b4d5cf14ecd275e05e
tree76ecd28549a16043ae687dd81200b108045e5c3b
parente8a2825690de4e817f6bf012e7917ab55833151c
usb: host: xhci-plat: Fix timeout on removal of hot pluggable xhci controllers

BugLink: http://bugs.launchpad.net/bugs/1674292
commit dcc7620cad5ad1326a78f4031a7bf4f0e5b42984 upstream.

Upstream commit 98d74f9ceaef ("xhci: fix 10 second timeout on removal of
PCI hotpluggable xhci controllers") fixes a problem with hot pluggable PCI
xhci controllers which can result in excessive timeouts, to the point where
the system reports a deadlock.

The same problem is seen with hot pluggable xhci controllers using the
xhci-plat driver, such as the driver used for Type-C ports on rk3399.
Similar to hot-pluggable PCI controllers, the driver for this chip
removes the xhci controller from the system when the Type-C cable is
disconnected.

The solution for PCI devices works just as well for non-PCI devices
and avoids the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/usb/host/xhci-plat.c