This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new dc0b0d6b4c composite: Use the correct USB dual-speed descriptor when 
enabling IAD
dc0b0d6b4c is described below

commit dc0b0d6b4cb1f05180f120292fa5e4a30e2d99f9
Author: zhangyuan21 <[email protected]>
AuthorDate: Tue Aug 8 14:20:29 2023 +0800

    composite: Use the correct USB dual-speed descriptor when enabling IAD
    
    Signed-off-by: zhangyuan21 <[email protected]>
---
 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 */

Reply via email to