usb: xhci: rework root port wake bits if controller isn't allowed to wakeup
commit a1377e5397ab321e21b793ec8cd2b6f12bd3c718 upstream.
When system is being suspended, if host device is not allowed to do wakeup,
xhci_suspend() needs to clear all root port wake on bits. Otherwise, some
platforms may generate spurious wakeup, even if PCI PME# is disabled.
The initial commit ff8cbf250b44 ("xhci: clear root port wake on bits"),
which also got into stable, turned out to not work correctly and had to
be reverted, and is now rewritten.
Signed-off-by: Lu Baolu <email@example.com>
Suggested-by: Alan Stern <firstname.lastname@example.org>
Acked-by: Alan Stern <email@example.com>
[Mathias Nyman: reword commit message]
Signed-off-by: Mathias Nyman <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>
[bwh: Backported to 3.2: adjust context; drop xhci-plat changes]
Signed-off-by: Ben Hutchings <firstname.lastname@example.org>
3 files changed