composite: Use the correct USB dual-speed descriptor when enabling IAD
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
114d641f4a
commit
dc0b0d6b4c
|
@ -162,9 +162,15 @@ static const struct usb_qualdesc_s g_qualdesc =
|
|||
LSBYTE(0x0200),
|
||||
MSBYTE(0x0200)
|
||||
},
|
||||
# ifdef CONFIG_COMPOSITE_IAD
|
||||
USB_CLASS_MISC, /* classid */
|
||||
2, /* subclass */
|
||||
1, /* protocol */
|
||||
# else
|
||||
USB_CLASS_VENDOR_SPEC, /* classid */
|
||||
0, /* subclass */
|
||||
0, /* protocol */
|
||||
# endif
|
||||
CONFIG_COMPOSITE_EP0MAXPACKET, /* mxpacketsize */
|
||||
COMPOSITE_NCONFIGS, /* nconfigs */
|
||||
0, /* reserved */
|
||||
|
|
Loading…
Reference in New Issue