]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: Fix runtime wakeup on OHCI
authorMatthew Garrett <mjg@redhat.com>
Thu, 6 Oct 2011 19:35:43 +0000 (15:35 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:48 +0000 (11:17 -0800)
commit29111b46ffad145631305c280ba194ac372c0423
treebdfdc2e174703fcb8ed4c5fe47d3acc93d7b6b4d
parent105d4a1205ca3d224a210f29fc2223a0b119aa8b
USB: Fix runtime wakeup on OHCI

commit a8b43c00ef06aec49b9fe0a5bad8a6a320e4d27b upstream.

At least some OHCI hardware (such as the MCP89) fails to flag any change
in the host status register or the port status registers when receiving
a remote wakeup while in D3 state. This results in the controller being
resumed but no device state change being noticed, at which point the
controller is put back to sleep again. Since there doesn't seem to be any
reliable way to identify the state change, just unconditionally resume the
hub. It'll be put back to sleep in the near future anyway if there are no
active devices attached to it.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-hub.c