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)
commitecdc0a590268f1926ed8534a040a390c77d20948
tree2815f3ad943ed71e16ce02b8e87dccfd41609a00
parent014aa2a3c32ebe33f97e9d219d91d3c5c7231bf7
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