Re: question on initiating gadget out/in transfer

ilya <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
hi david, thank you for your response.

> .       but i am not sure on how to invoke
> > ins and outs on the gadget side.
>
> In response to a SET_CONFIGURATION request, or
> after that's done sometimes in response to a
> SET_INTERFACE (altsetting) request.

so my assumption is correct? if everything done
correctly the gadget driver should queue a usb
request on an IN and on an OUT endpoint after
SET_CONFIGURATION or SET_INTERFACE?

> >               my theory was that with
> > regular transfers gadget would queue an
> > in and an out request at all times and my driver
> > would call the complete() function once it would
> > fill in the buffer,
>
> If by "fill in the buffer" you copying data from
> the controller FIFO for OUT data, or copying it
> into the corresponding FIFO for IN data, yes ...
>
> Note that you have a simple operational test for
> this, called "Gadget Zero". That code works right,
> so if your it doesn't work right with your driver
> then the problem is in your code.

i have been using the "gadget zero" to write my
controller driver. so far, right before SET_CONFIGURATION,
i see gadget zero enabling both IN and OUT endpoints,
allocating a request and a buffer for each one of them
and then responding to the control request. the i get
two identical GET_DESCRIPTOR(String iInterface),
the gadget zero queues two requests to respond
and that's it. i figured this should be the point where
it would queue an IN and an OUT request but that
never happens. can i still use the requests it allocated
without them being queued?

thank you for your help.

-- ilya

-------------------------------------------------------------------------
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.