USB: gadget: android Fix gadget descriptor compliance for IAD's
authorJohn Michelau <john.michelau@motorola.com>
Fri, 10 Dec 2010 17:33:54 +0000 (11:33 -0600)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:11 +0000 (09:09 -0700)
commitd5d2de6539f4a588d8a6187cfe8396d4300b4653
tree208e0fef98174d9d0842d8c948bd937c84f28f63
parent677ba87bdfc5765bb2ed80692d74f8de41b83f11
USB: gadget: android Fix gadget descriptor compliance for IAD's

USB-IF core team mandates that composite devices containing
IAD's must use bDeviceClass=0xEF, bDeviceSubClass=0x02, &
bDeviceProtocol=0x01 instead of the usual 0x00 in all fields.
This is not a problem currently on Linux hosts, but it is a
problem when connecting to Windows hosts. Without this change
the default Microsoft composite driver will not group
interfaces properly, which is what allows child function
drivers with IAD's to load correctly.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/android.c