hi
I couldn't find a developwer faq on www.linux-usb.org, so I thought perhaps this might
be the
right place to ask a few questions.
(I have read lots of the drivers/usb & drivers/usb/host source before asking these
questions.
pegasus, usbnet, usb, usb-uhci, and pwc just to name a few off the top of my head.)
Please forgive me if this is the wrong place/method.
In writing a USB device driver I am uncertain as to what the "right thing" to do is
when I receive
an error (urb->status<0) in a usb_complete_t which is reading/receiving data from the
device.
-ECONNRESET means the urb has been async-unlinked.
-ENOENT means you've been sync-unlinked.
Either way, is it safe to usb_free_urb right then? (Provided the unlinker doesnt
expect to do
the freeing.)
Not asking if usb_free_urb is interrupt safe, but is it safe to free the urb when
these errors
are reported to the usb_complete_t.
-EPIPE:
Others:
When other error conditions are identified, what is the appropriate action?
If someone is waiting on data, you should wake them so they know there was an error?
If the urb has an !=0 interval, if I wish to receive more data in the future, do I
need to
usb_clear_halt? usb_unlink_urb & usb_submit_urb ?
Are there error values which might indicate "temporary failure, please resubmit" ?
Thank you for any pointers to dev-specific FAQ or answers to these questions, and for
your time.
ray
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel