]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: don't rebind drivers after failed resume or reset
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 23 Oct 2008 17:35:07 +0000 (17:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 25 Oct 2008 21:32:38 +0000 (14:32 -0700)
commit1769c339cde4c1da819ee97513e9340413cef3c5
treeb119ced03a23be63cdd2db035d8b1bc0b38839d9
parent8cece7795b1c359787261a150ac502b250c6699f
USB: don't rebind drivers after failed resume or reset

commit 6c6409459a18a825ce12ecb003d5686af61f7a2f upstream

This patch (as1152) may help prevent some problems associated with the
new policy of unbinding drivers that don't support suspend/resume or
pre_reset/post_reset.  If for any reason the resume or reset fails, and
the device is logically disconnected, there's no point in trying to
rebind the driver.  So the patch checks for success before carrying
out the unbind/rebind.

There was a report from one user that this fixed a problem he was
experiencing, but the details never became fully clear.  In any case,
adding these tests can't hurt.

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