• Alan Stern's avatar
    USB: more autosuspend timer stuff · ef7f6c70
    Alan Stern authored
    This patch (as879) ties up some loose ends from an earlier patch.
    These are things I didn't think to include at the time but which
    clearly belonged there.
    
    	If an autosuspend fails because driver activity races with
    	the autosuspend call, restart the autosuspend timer.
    
    	When a device is resumed by an external request, it counts
    	as device activity and should update the last_busy time so
    	that the next autoresume won't occur immediately.
    Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    ef7f6c70
driver.c 45.5 KB