USB: gadget: android Fix gadget descriptor compliance for IAD's
commitf861368d37ee84404fd35ea2f37e8f94aa134012
authorJohn Michelau <john.michelau@motorola.com>
Fri, 10 Dec 2010 17:33:54 +0000 (10 11:33 -0600)
committerMike Lockwood <lockwood@android.com>
Sat, 11 Dec 2010 18:58:55 +0000 (11 10:58 -0800)
tree554a6a6efa6d168b9b28e0e2518fc73c15f3c09a
parent415c4295773a5e0f365cc2e9dcbf3ef3c378cc95
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