]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
OHCI: Allow broken controllers to auto-stop
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 17 Oct 2008 23:10:23 +0000 (23:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 21:21:17 +0000 (14:21 -0700)
commit5bad3352aa6262a0e4515315060d93d691913399
tree8803cef9d6647cd27547cfdf2b762d5a495f1036
parentdd1f7982f569821f0f35237644e1900456adc58e
OHCI: Allow broken controllers to auto-stop

commit 4a511bc3f5829bc18428bcf11c25417a79d09396 upstream

This patch (as1134) attempts to improve the way we handle OHCI
controllers with broken Root Hub Status Change interrupt support.  In
these controllers the RHSC interrupt bit essentially never turns off,
making RHSC interrupts useless -- they have to remain permanently
disabled.

Such controllers should still be allowed to turn off their root hubs
when no devices are attached.  Polling for new connections can
continue while the root hub is suspended.  The patch implements this
feature.  (It won't have much effect unless CONFIG_PM is enabled and
CONFIG_USB_SUSPEND is disabled, but since the overhead is very small
we may as well do it.)

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