]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
EHCI: fix criterion for resuming the root hub
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 25 Apr 2012 06:17:42 +0000 (01:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:56:34 +0000 (08:56 -0700)
commitcb30a2fb48b70262f9989a0d0bbc2a42ec156a22
tree2a6cf4ebfec5b05cc1294a2e669c234fbecc85f8
parent20eae41274bb811063f95a2dde0b3dda88a3d5a0
EHCI: fix criterion for resuming the root hub

commit dc75ce9d929aabeb0843a6b1a4ab320e58ba1597 upstream.

This patch (as1542) changes the criterion ehci-hcd uses to tell when
it needs to resume the controller's root hub.  A resume is needed when
a port status change is detected, obviously, but only if the root hub
is currently suspended.

Right now the driver tests whether the root hub is running, and that
is not the correct test.  In particular, if the controller has died
then the root hub should not be restarted.  In addition, some buggy
hardware occasionally requires the root hub to be running and
sending out SOF packets even while it is nominally supposed to be
suspended.

In the end, the test needs to be changed.  Rather than checking whether
the root hub is currently running, the driver will now check whether
the root hub is currently suspended.  This will yield the correct
behavior in all cases.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Peter Chen <B29397@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
drivers/usb/host/ehci-hcd.c