On Fri, May 24, 2002, Martin Diehl <[EMAIL PROTECTED]> wrote: > On Fri, 24 May 2002, Thomas Wahrenbruch wrote: > > > some Control URBs to the converter. Sending one Control URB works fine. > > But if I want to send more than one Control URB, I have to wait for the > > completion hanlder to finish, before I can send the next URB. (Please > > correct me, if I'm wrong) I need the result of the previous Control URB > > to determine what Control URB to send next. > > So queueing the URBs to the control-ep wouldn't help you anyway (besides > it's not there at least for *uhci*, IIRC).
Correct. > > Now here comes my question: How do I wait? > > Why not simply preparing _and_ submitting the next URB when the former one > completes, i.e. let the completion handler do that. After successful > submission the completion handler could wake_up() the main thread so it > can go on. In order to prevent races there, one might want to use the > wait_event() macro, if appropriate. usb_control_msg() is probably what he wants. It waits. JE _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel