Re: A few questions about gadgetfs

2018-09-04 Thread Alan Stern
On Tue, 4 Sep 2018, Andrey Konovalov wrote: > Hi Alan, > > Another question. According to the USB spec: > > """ > The Data stage of a control transfer from an endpoint to the host is > complete when the endpoint does one of the following: > * Has transferred exactly the amount of data specified

Re: A few questions about gadgetfs

2018-09-04 Thread Andrey Konovalov
Hi Alan, Another question. According to the USB spec: """ The Data stage of a control transfer from an endpoint to the host is complete when the endpoint does one of the following: * Has transferred exactly the amount of data specified during the Setup stage * Transfers a packet with a payload si

Re: A few questions about gadgetfs

2018-08-31 Thread Andrey Konovalov
On Fri, Aug 31, 2018 at 4:34 PM, Alan Stern wrote: > On Fri, 31 Aug 2018, Andrey Konovalov wrote: [...] >> Yes, I understand this. The idea is to stall/wait until the userspace >> provides a response. Like gadgetfs, but for every USB request. > > If all you want to do is wait, STALL is not the a

Re: A few questions about gadgetfs

2018-08-31 Thread Alan Stern
On Fri, 31 Aug 2018, Andrey Konovalov wrote: > On Thu, Aug 30, 2018 at 10:50 PM, Alan Stern > wrote: > > On Thu, 30 Aug 2018, Andrey Konovalov wrote: > > > >> Hi Alan, > >> > >> I have a few questions about gadgetfs. > >> > >>

Re: A few questions about gadgetfs

2018-08-31 Thread Andrey Konovalov
On Thu, Aug 30, 2018 at 10:50 PM, Alan Stern wrote: > On Thu, 30 Aug 2018, Andrey Konovalov wrote: > >> Hi Alan, >> >> I have a few questions about gadgetfs. >> >> According to documentation usb_gadget_driver->setup "queues a response >>

Re: A few questions about gadgetfs

2018-08-30 Thread Alan Stern
On Thu, 30 Aug 2018, Andrey Konovalov wrote: > Hi Alan, > > I have a few questions about gadgetfs. > > According to documentation usb_gadget_driver->setup "queues a response > to ep0, or returns negative to stall". > > Do I understand correctly, that

A few questions about gadgetfs

2018-08-30 Thread Andrey Konovalov
Hi Alan, I have a few questions about gadgetfs. According to documentation usb_gadget_driver->setup "queues a response to ep0, or returns negative to stall". Do I understand correctly, that "stall" in this case means "retry the same request later" and it's