On Thu, 22 Nov 2007, Anil Yadav wrote: > Hi, > > I have a gadget with 2 configurations. The default configuration > supposed to expose 2 interfaces and the other configuration supposed > to expose a different set of interfaces. If I choose any configuration > e.g. config 2 how should I invoke the two interfaces so that their > respective gadget interface drivers get loaded and at host if #cat > /proc/bus/usb/devices done it should display all the interfaces > exposed by the gadget.
Sorry, I can't understand that last sentence. > I guess composite devices work in same fashion. > > I have studied the zero.c source and tried with different options but > only one interface driver is getting exposed. Do I need to do > something in the device controller ? You do not need to change the device controller driver. You just have to make sure your gadget driver sends the correct descriptors to the host. In the reply to a Get-Config-Descriptor request, you have to send the configuration descriptor followed by all the interface and endpoint descriptors for that configuration. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users