staging: usbip: bugfix prevent driver unbind
authorArjan Mels <arjan.mels@gmx.net>
Fri, 20 May 2011 21:25:46 +0000 (23:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:28:41 +0000 (12:28 -0700)
commitd3ac0778801708caecb2b172328064255a350432
tree72899146455ec5605fa877d822d931918ba6e692
parentc11c4eebdd75fc0f443a3f794a2ddc85afed1932
staging: usbip: bugfix prevent driver unbind

Implemented pre_reset and post_reset methods of the driver to prevent the
driver from being unbound upon a device reset. Because of this also the
asynchronous reset introduced to prevent a race condition is no longer necessary
(and sometimes causes problems, because it comes later then expected).

Signed-off-by: Arjan Mels <arjan.mels@gmx.net>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Takahiro Hirofuchi <hirofuchi@users.sourceforge.net>
Cc: Max Vozeler <max@vozeler.com>
Cc: usbip-devel <usbip-devel@lists.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub_dev.c
drivers/staging/usbip/stub_rx.c