OSDN Git Service

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)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:57:47 +0000 (13:57 -0700)
commit75bc02e1fc627a8c09a689d3bdb8eccec15700eb
tree5ebdd22ae0b7b082f4c92c089bd812ad70f0ddb0
parent29ebc8b9973afdd6bedfc3353d2e2aaf96132578
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