]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usbcore get rid of the timer in usb_start_wait_urb()
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Wed, 12 Jul 2006 08:09:41 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:51 +0000 (11:58 -0700)
commit7451c5ed4f1c838a9e63886cf1a8f48f154ee2ec
tree2815f3ad943ed71e16ce02b8e87dccfd41609a00
parent2d8fa3def57407e06cda8db61b3e96e57bf857e1
USB: usbcore get rid of the timer in usb_start_wait_urb()

This patch uses completion timeout instead of a timer to implement
a timeout when submitting an URB in usb_start_wait_urb().

It also fixes a small issue. With the previous code, if no timeout
happened and the URB's status was set to ECONNRESET value, the code
assumed wrongly that a timeout had occured.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c