]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: Fix runtime wakeup on OHCI
authorMatthew Garrett <mjg@redhat.com>
Thu, 6 Oct 2011 19:35:43 +0000 (15:35 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:36 +0000 (09:42 -0800)
commitaa5f85cae9e4d36ba4c53d6cdd5bc3640c7f581a
treecbd30842d0cb8ce1ea009a7e53cf5f9cc2314b29
parentf2da6eea83c56477fdfec9ebf38e812e440f269f
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