Re: [PATCH 4/4] USB: add urb->unlinked field

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Tuesday 21 August 2007, Alan Stern wrote:
> This patch (as970) adds a new urb->unlinked field, which is used to
> store the status of unlinked URBs since we can't use urb->status for
> that purpose any more.  To help simplify the HCDs, usbcore will check
> urb->unlinked before calling the completion handler; if the value is
> set it will automatically override the status reported by the HCD.

That changes behavior, right?  Previously, if e.g. an IO error
was reported in urb->status and the HCD was somewhere in the
process of cleaning up after that error before reporting that
completion, an unlink would fail but that status would be made
available as the urb's completion status.

Now, in that same scenario, the unlink would complete and that
hardware status would be discarded.  The documentation for the
unlink would seem to need to be changed too.

- Dave


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.