Re: Multiple g_zero gadgets

2017-11-10 Thread Hinko Kocevar
By the way, if I try to do a control out transfer to the g_zero gadget I get 'Pipe error' (using libusb-1.0). Is this expected? On Thu, Nov 9, 2017 at 4:24 PM, Alan Stern <st...@rowland.harvard.edu> wrote: > On Thu, 9 Nov 2017, Felipe Balbi wrote: > >> >> Hi, >

Re: Multiple g_zero gadgets

2017-11-09 Thread Hinko Kocevar
.. -hinko On Thu, Nov 9, 2017 at 12:15 PM, Felipe Balbi <felipe.ba...@linux.intel.com> wrote: > > Hi, > > Hinko Kocevar <hinkoce...@gmail.com> writes: >>> The way dummy was written, it can only instantiate one gadget. You >>> either need a real USB periphe

Re: Multiple g_zero gadgets

2017-11-09 Thread Hinko Kocevar
Hi Felipe, > > The way dummy was written, it can only instantiate one gadget. You > either need a real USB peripheral controller, or you need to patch dummy > to instantiate more than one gadget. > > -- > balbi By dummy - are you referring to g_zero of dummy_hcd? /hinko -- .. the more I see

Multiple g_zero gadgets

2017-11-09 Thread Hinko Kocevar
Hi, I'm using g_zero and dummy_hcd to test my userspace software dealing with USB device I currently do not have. Works great! But for single g_zero instance ... is it possible to have two g_zero devices seen in the system? Here is what I get: # Testing with dummy USB device Get kernel sources