On Wed, 9 Feb 2005, Brian Murphy wrote:
> I would very much like to see this patch or equivalent in the next
> official kernel:
> --- linux-2.6.11-rc3.orig/drivers/usb/core/message.c 2005-02-05
> 10:41:57.000000000 +0100
> +++ linux-2.6.11-rc3/drivers/usb/core/message.c 2005-02-07
> 01:40:22.000000000 +0100
> @@ -65,12 +65,10 @@
> status = urb->status;
> /* note: HCDs return ETIMEDOUT for other reasons too */
> if (status == -ECONNRESET) {
> - dev_warn(&urb->dev->dev,
> - "%s timed out on ep%d%s\n",
> - current->comm,
> - usb_pipeendpoint(urb->pipe),
> - usb_pipein(urb->pipe) ? "in" : "out");
> - status = -ETIMEDOUT;
> + if (urb->actual_length > 0)
> + status = 0;
> + else
> + status = -ETIMEDOUT;
> }
> if (timeout > 0)
> del_timer_sync(&timer);
While you're at it, please remove also that comment about HCDs returning
ETIMEDOUT for other reasons. They don't, not any more.
Alan Stern
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel