Skip to content

Commit 1a85329

Browse files
jysnpsfelipebalbi
authored andcommitted
usb: gadget: composite: Return bcdUSB 0x0310
The USB 3.1 specification replaces the USB 3.0 specification and all new devices that are running at SuperSpeed or higher speeds must report a bcdUSB of 0x0310. Refer to USB 3.1 Specification, Revision 1.0, Section 9.6. Signed-off-by: John Youn <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 1ca1b6a commit 1a85329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/composite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
14991499
cdev->gadget->ep0->maxpacket;
15001500
if (gadget_is_superspeed(gadget)) {
15011501
if (gadget->speed >= USB_SPEED_SUPER) {
1502-
cdev->desc.bcdUSB = cpu_to_le16(0x0300);
1502+
cdev->desc.bcdUSB = cpu_to_le16(0x0310);
15031503
cdev->desc.bMaxPacketSize0 = 9;
15041504
} else {
15051505
cdev->desc.bcdUSB = cpu_to_le16(0x0210);

0 commit comments

Comments
 (0)