• Alan Stern's avatar
    USB: revert recovery from transient errors · 5257d97a
    Alan Stern authored
    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: default avatarAlan Stern <stern@rowland.harvard.edu>
    Tested-by: default avatarFrans Pop <elendil@planet.nl>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    5257d97a
hub.c 96.1 KB