Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configurations

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Xiaofan Chen
Date: Saturday, August 14, 2010 - 1:57 am

On Sat, Aug 14, 2010 at 4:39 PM, Michal Nazarewicz <mina86@mina86.com> wrote:

Thanks. Now it is clear. The patch is correct after all.

Somehow I forgot the following blog entry again. This blog entry
seems to be more clear than the MSDN entries.
http://blogs.msdn.com/b/usbcoreblog/archive/2010/05/19/multi-config-usb-devices-and-wi...

+++++++++++++++++
The USBCCGP composite device driver has support for multiple device
configurations, with a few caveats.
http://msdn.microsoft.com/en-us/library/ff539242(VS.85).aspx

   1. USBCCGP will not load on a multi-config device by default because
the hub driver doesn't create a "USB\COMPOSITE" PNP ID for a composite
device if it has multiple configurations. However, you can write your own INF
that matches a device-specific PNP ID to get USBCCGP to load as your
device's function driver.

   2. To select a configuration other than index 0, you must set registry
settings as specified in "Selecting the Configuration for a Composite
USB Device".
http://msdn.microsoft.com/en-us/library/ff538059(VS.85).aspx

During enumeration, USBCCGP will first attempt to select the
configuration whose descriptor is found at the specified "original" index. If
the attempt fails, normally due to the configuration requiring more than
100mA while the device's upstream hub has only bus power, then
USBCCGP attempts to select the configuration found at the specified
"alternate" index instead.

   3. Drivers that are clients of USBCCGP cannot change the device's
configuration value.
+++++++++++++++++



-- 
Xiaofan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] USB: Gadget: g_multi: added INF file for gadget wi ..., Dries Van Puymbroeck, (Fri Aug 13, 2:31 am)
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadge ..., Michal Nazarewicz, (Fri Aug 13, 1:35 pm)
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadge ..., Michal Nazarewicz, (Sat Aug 14, 1:39 am)
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadge ..., Xiaofan Chen, (Sat Aug 14, 1:57 am)
RE: [PATCH] USB: Gadget: g_multi: added INF file for gadge ..., Dries Van Puymbroeck, (Mon Aug 16, 1:07 am)