Re: Pass transfer_buffer to gadget drivers

2019-06-28 Thread Alan Stern
On Fri, 28 Jun 2019, Andrey Konovalov wrote: > On Fri, Jun 28, 2019 at 6:44 PM Andrey Konovalov > wrote: > > > > On Tue, Jun 18, 2019 at 3:53 PM Alan Stern > > wrote: ... > > > > > Another question: do I understand correctly, that we only proceed with > > > > > submitting an URB to get the d

Re: Pass transfer_buffer to gadget drivers

2019-06-28 Thread Andrey Konovalov
On Fri, Jun 28, 2019 at 6:44 PM Andrey Konovalov wrote: > > On Tue, Jun 18, 2019 at 3:53 PM Alan Stern wrote: > > > > On Tue, 18 Jun 2019, Andrey Konovalov wrote: > > > > > On Tue, Jun 18, 2019 at 3:31 PM Andrey Konovalov > > > wrote: > > > > > > > > On Fri, Jun 7, 2019 at 5:05 PM Andrey Konova

Re: Pass transfer_buffer to gadget drivers

2019-06-28 Thread Andrey Konovalov
On Tue, Jun 18, 2019 at 3:53 PM Alan Stern wrote: > > On Tue, 18 Jun 2019, Andrey Konovalov wrote: > > > On Tue, Jun 18, 2019 at 3:31 PM Andrey Konovalov > > wrote: > > > > > > On Fri, Jun 7, 2019 at 5:05 PM Andrey Konovalov > > > wrote: > > > > > > > > On Fri, Jun 7, 2019 at 5:02 PM Alan Ster

Re: Pass transfer_buffer to gadget drivers

2019-06-18 Thread Felipe Balbi
Hi, Alan Stern writes: >> Also, does the gadget subsystem guarantee, that we get the complete() >> callback for the DATA stage of the OUT control request before we get a >> setup() callback for the next control request if there's any? > > As I recall, this isn't mentioned in the documentation.

Re: Pass transfer_buffer to gadget drivers

2019-06-18 Thread Alan Stern
On Tue, 18 Jun 2019, Andrey Konovalov wrote: > On Tue, Jun 18, 2019 at 3:31 PM Andrey Konovalov > wrote: > > > > On Fri, Jun 7, 2019 at 5:05 PM Andrey Konovalov > > wrote: > > > > > > On Fri, Jun 7, 2019 at 5:02 PM Alan Stern > > > wrote: > > > > > > > > On Fri, 7 Jun 2019, Andrey Konovalov

Re: Pass transfer_buffer to gadget drivers

2019-06-18 Thread Andrey Konovalov
On Tue, Jun 18, 2019 at 3:31 PM Andrey Konovalov wrote: > > On Fri, Jun 7, 2019 at 5:05 PM Andrey Konovalov wrote: > > > > On Fri, Jun 7, 2019 at 5:02 PM Alan Stern wrote: > > > > > > On Fri, 7 Jun 2019, Andrey Konovalov wrote: > > > > > > > > > The problem is that I want to receive that data (f

Re: Pass transfer_buffer to gadget drivers

2019-06-18 Thread Andrey Konovalov
On Fri, Jun 7, 2019 at 5:05 PM Andrey Konovalov wrote: > > On Fri, Jun 7, 2019 at 5:02 PM Alan Stern wrote: > > > > On Fri, 7 Jun 2019, Andrey Konovalov wrote: > > > > > > > The problem is that I want to receive that data (from the data stage) > > > > > from within my gadget driver module. But it

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Andrey Konovalov
On Fri, Jun 7, 2019 at 5:02 PM Alan Stern wrote: > > On Fri, 7 Jun 2019, Andrey Konovalov wrote: > > > > > The problem is that I want to receive that data (from the data stage) > > > > from within my gadget driver module. But it's not passed to the > > > > setup() callback. And the question is: ho

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Alan Stern
On Fri, 7 Jun 2019, Andrey Konovalov wrote: > > > The problem is that I want to receive that data (from the data stage) > > > from within my gadget driver module. But it's not passed to the > > > setup() callback. And the question is: how do I do that then? > > > > I just caught up on this thread.

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Andrey Konovalov
On Fri, Jun 7, 2019 at 4:04 PM Alan Stern wrote: > > On Fri, 7 Jun 2019, Andrey Konovalov wrote: > > > On Fri, Jun 7, 2019 at 2:43 PM Felipe Balbi > > wrote: > > > > > > > > > Hi, > > > > > > Andrey Konovalov writes: > > > >> >> Andrey Konovalov writes: > > > >> >> > I've noticed that when the

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Alan Stern
On Fri, 7 Jun 2019, Andrey Konovalov wrote: > On Fri, Jun 7, 2019 at 2:43 PM Felipe Balbi > wrote: > > > > > > Hi, > > > > Andrey Konovalov writes: > > >> >> Andrey Konovalov writes: > > >> >> > I've noticed that when the host performs a control request, > > >> >> > urb->transfer_buffer/transfe

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Andrey Konovalov
On Fri, Jun 7, 2019 at 2:43 PM Felipe Balbi wrote: > > > Hi, > > Andrey Konovalov writes: > >> >> Andrey Konovalov writes: > >> >> > I've noticed that when the host performs a control request, > >> >> > urb->transfer_buffer/transfer_buffer_length are not passed to the > >> >> > gadget drivers vi

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Felipe Balbi
Hi, Andrey Konovalov writes: >> >> Andrey Konovalov writes: >> >> > I've noticed that when the host performs a control request, >> >> > urb->transfer_buffer/transfer_buffer_length are not passed to the >> >> > gadget drivers via the setup() call, the only thing that is passed is >> >> > the usb

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Andrey Konovalov
On Fri, Jun 7, 2019 at 2:25 PM Felipe Balbi wrote: > > > Hi, > > Andrey Konovalov writes: > >> Andrey Konovalov writes: > >> > I've noticed that when the host performs a control request, > >> > urb->transfer_buffer/transfer_buffer_length are not passed to the > >> > gadget drivers via the setup(

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Felipe Balbi
Hi, Andrey Konovalov writes: >> Andrey Konovalov writes: >> > I've noticed that when the host performs a control request, >> > urb->transfer_buffer/transfer_buffer_length are not passed to the >> > gadget drivers via the setup() call, the only thing that is passed is >> > the usb_ctrlrequest st

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Andrey Konovalov
On Fri, Jun 7, 2019 at 2:02 PM Felipe Balbi wrote: > > > Hi, > > Andrey Konovalov writes: > > I've noticed that when the host performs a control request, > > urb->transfer_buffer/transfer_buffer_length are not passed to the > > gadget drivers via the setup() call, the only thing that is passed is

Re: Pass transfer_buffer to gadget drivers

2019-06-07 Thread Felipe Balbi
Hi, Andrey Konovalov writes: > I've noticed that when the host performs a control request, > urb->transfer_buffer/transfer_buffer_length are not passed to the > gadget drivers via the setup() call, the only thing that is passed is > the usb_ctrlrequest struct. Is there a way to get the transfer_

Pass transfer_buffer to gadget drivers

2019-06-07 Thread Andrey Konovalov
Hi Alan, I've noticed that when the host performs a control request, urb->transfer_buffer/transfer_buffer_length are not passed to the gadget drivers via the setup() call, the only thing that is passed is the usb_ctrlrequest struct. Is there a way to get the transfer_buffer from within a gadget dr