]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
USB: revert recovery from transient errors
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 22 Sep 2008 18:43:08 +0000 (14:43 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Sep 2008 20:58:10 +0000 (13:58 -0700)
commit5257d97a219e17abf8188f136e1189da3b3af33c
tree0fd223387fe974f395ed09b1d7a0f5c356dddd65
parentaf747c460b663a4b7795dc3f6897b5506fde6888
USB: revert recovery from transient errors

This patch (as1135) essentially reverts the major parts of two earlier
patches to usbcore, because they ended up causing a regression.

Trying to recover from transient communication errors can lead to
other problems, because operations that failed during the error period
are not always retried.  The simplest example is the initial
Set-Config request sent after device enumeration; if it gets lost then
it will not be retried and the device will remain unconfigured.

This patch restores the old behavior in which any port disconnect or
port disable causes the entire device structure to be removed, fixing a
reported regression.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c