Re: USB gadget with drivers "on board"

From: Daniel Mack
Date: Mon Apr 26 2010 - 10:16:15 EST


On Mon, Apr 26, 2010 at 10:29:05AM +0200, MichaÅ Nazarewicz wrote:
> I need to create an USB gadget with drivers for Windows included
> "on board". In particular, when the gadget is connected to Windows
> host it is detected as mass storage and mounted drive include the
> drivers. However, when the drivers are installed, it is detected
> as some other device.
>
> Now, it seems that a simple composite device with two configurations
> is enough -- the first containing mass storage and the second other
> functions. My tests show that Windows manages to set the first
> configuration and detect the mass storage interface.

Why are you using two configurations on this device instead of one
configuration with two interfaces? Interfaces are not allowed to share
endpoints within one configuration, so they can be used simultaniously.

Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/