xhci: Workaround for PME stuck issues in Intel xhci
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 6 Mar 2015 15:23:19 +0000 (17:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:47:48 +0000 (09:47 -0800)
commitb8cb91e058cd0c0f02059c1207293c5b31d350fa
tree4eac133da2e31268645eb19dcf5ea1d837449b26
parent45ba2154d12fc43b70312198ec47085f10be801a
xhci: Workaround for PME stuck issues in Intel xhci

The xhci in Intel Sunrisepoint and Cherryview platforms need a driver
workaround for a Stuck PME that might either block PME events in suspend,
or create spurious PME events preventing runtime suspend.

Workaround is to clear a internal PME flag, BIT(28) in a vendor specific
PMCTRL register at offset 0x80a4, in both suspend resume callbacks

Without this, xhci connected usb devices might never be able to wake up the
system from suspend, or prevent device from going to suspend (xhci d3)

Cc: <stable@vger.kernel.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.h