usb: gadget: composite: fill bcdUSB as 0x0320 for SuperSpeed or higher speeds
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Wed, 9 May 2018 11:29:16 +0000 (19:29 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:22:21 +0000 (10:22 +0300)
The USB3CV version 2.1.80 (March 26, 2018) requires all devices
( gen1, gen2, single lane, dual lane) to return the value of 0x0320
in the bcdUSB field

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/composite.c

index 63a7cb87514a48faccd2e998ca63ba67cc6f6507..f242c2bcea810c0dee04f067ceea0dc716912058 100644 (file)
@@ -1601,7 +1601,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
                                cdev->gadget->ep0->maxpacket;
                        if (gadget_is_superspeed(gadget)) {
                                if (gadget->speed >= USB_SPEED_SUPER) {
-                                       cdev->desc.bcdUSB = cpu_to_le16(0x0310);
+                                       cdev->desc.bcdUSB = cpu_to_le16(0x0320);
                                        cdev->desc.bMaxPacketSize0 = 9;
                                } else {
                                        cdev->desc.bcdUSB = cpu_to_le16(0x0210);