]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xhci: Fix sleeping with spin_lock_irq() held in ASmedia 1042A workaround
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 18 Sep 2017 14:39:17 +0000 (17:39 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:48:49 +0000 (09:48 -0500)
commit428423561056b12af27ec1fe0df27ca84cf009e2
tree46b41d4917f6f1ba1141b7e3339384798844b6b5
parent91537c862eae8cb8ae1c246e75aa8af9e54b6481
xhci: Fix sleeping with spin_lock_irq() held in ASmedia 1042A workaround

BugLink: http://bugs.launchpad.net/bugs/1723145
commit 4ec1cd3eeeee7ccc35681270da028dbc29ca7bbd upstream.

The flow control workaround for ASM1042A xHC hosts sleeps between
register polling. The workaround gets called in several places, among
them with spin_lock_irq() held when xHC host is resumed or hoplug removed.

This was noticed as kernel panics at resume on a Dell XPS15 9550 with
TB16 thunderbolt dock.

Avoid sleeping with spin_lock_irq() held, use udelay() instead

The original workaround was added to 4.9 and 4.12 stable releases,
this patch needs to be applied to those as well.

Fixes: 9da5a1092b13 ("xhci: Bad Ethernet performance plugged in ASM1042A host")
Reported-by: Jose Marino <marinoj@nso.edu>
Tested-by: Jose Marino <marinoj@nso.edu>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/usb/host/pci-quirks.c