USB: EHCI: fix remote-wakeup support for ARC/TDI core
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 6 Oct 2008 15:25:53 +0000 (11:25 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:41:03 +0000 (14:41 -0700)
commiteafe5b99f2135488b21cf17a262c54997c44f784
tree648a1c93460c7ae9b12624989cb8aca21d789114
parent2da41d5f6c036e7a6e496a7e601a685f8b87acb0
USB: EHCI: fix remote-wakeup support for ARC/TDI core

This patch (as1147) fixes the remote-wakeup support for EHCI
controllers using the ARC/TDI "embedded-TT" core.  These controllers
turn off the RESUME bit by themselves when a port resume is complete;
hence we need to keep separate track of which ports are suspended or
in the process of resuming.

The patch also makes a couple of small improvements in ehci_irq(),
replacing reads of the command register with the value already stored
in a local variable.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Thomas Reitmayr <treitmayr@devbase.at>
CC: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci.h