USB: gadget: acm,rndis: IAD class, subclass & prot should match 1st ifacemaster
commitbe0bf00ecfb0797e408c76a5f373c5802bba291a
authorJohn Michelau <john.michelau@motorola.com>
Fri, 10 Dec 2010 19:51:19 +0000 (10 13:51 -0600)
committerMike Lockwood <lockwood@android.com>
Sat, 11 Dec 2010 19:01:53 +0000 (11 11:01 -0800)
treead78367e739f7add3a3e0c3c340ab6e99fc2f039
parentd9d4cb3a406df016c94026b6c32935f7c4e85c09
USB: gadget: acm,rndis: IAD class, subclass & prot should match 1st iface

Microsoft recommends that the class and subclass fields of
an IAD match the same fields from the first interface in the
collection that the IAD is grouping. In practice, we are also
finding that the protocol fields should also match. Without
this change, the default Microsoft composite driver may 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/f_acm.c
drivers/usb/gadget/f_rndis.c