]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: EHCI: fix controller wakeup flag settings during suspend
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 12 May 2010 22:21:35 +0000 (18:21 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:08 +0000 (11:22 -0700)
commit8adbb24bada99dde60b4d5ebdc2ae1ec61ff4698
tree7b75b376f3b95de3d2c872ddc30608023937fcd1
parenta9093288d3428afaec9cf2097c3edc0982a69ad0
USB: EHCI: fix controller wakeup flag settings during suspend

commit 16032c4f5b291af541e9114a09ea20ff5a0dc474 upstream.

This patch (as1380) fixes a bug in the wakeup settings for EHCI host
controllers.  When the controller is suspended, if it isn't enabled
for remote wakeup then we have to turn off all the port wakeup flags.
Disabling PCI PME# isn't good enough, because some systems (Intel)
evidently use alternate wakeup signalling paths.

In addition, the patch improves the handling of the Intel Moorestown
hardware by performing various power-up and power-down delays just
once instead of once for each port (i.e., the delays are moved outside
of the port loops).  This requires extra code, but the total delay
time is reduced.

There are also a few additional minor cleanups.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Ondrej Zary <linux@rainbow-software.org>
CC: Alek Du <alek.du@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-au1xxx.c
drivers/usb/host/ehci-fsl.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci-pci.c
drivers/usb/host/ehci.h