From dc0b0d6b4cb1f05180f120292fa5e4a30e2d99f9 Mon Sep 17 00:00:00 2001 From: zhangyuan21 Date: Tue, 8 Aug 2023 14:20:29 +0800 Subject: [PATCH] composite: Use the correct USB dual-speed descriptor when enabling IAD Signed-off-by: zhangyuan21 --- drivers/usbdev/composite_desc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usbdev/composite_desc.c b/drivers/usbdev/composite_desc.c index fd4661b84e..9ff81153fd 100644 --- a/drivers/usbdev/composite_desc.c +++ b/drivers/usbdev/composite_desc.c @@ -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 */