xhci: clear root port wake on bits if controller isn't wake-up capable
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 24 Jun 2014 14:14:43 +0000 (17:14 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Aug 2014 17:07:32 +0000 (18:07 +0100)
commit6833fc8599e2eaad3b5bf2aef0a07468379cc43b
treeb890e194fd213bb70034804c6543a908909213c2
parentb85631abb6d4fa4d70ee223c3c4a65c5bf7e1709
xhci: clear root port wake on bits if controller isn't wake-up capable

commit ff8cbf250b448aac35589f6075082c3fcad8a8fe upstream.

When xHCI PCI host is suspended, if do_wakeup is false in xhci_pci_suspend,
xhci_bus_suspend needs to clear all root port wake on bits. Otherwise some Intel
platforms may get a spurious wakeup, even if PCI PME# is disabled.

This patch should be back-ported to kernels as old as 2.6.37, that
contains the commit 9777e3ce907d4cb5a513902a87ecd03b52499569
"USB: xHCI: bus power management implementation".

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci-hub.c