Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a03c51a1 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: composite: Return bcdUSB 0x0310 for Superspeed and higher



As per USB 3.1 Specification, Revision 1.0, Section 9.6 all new
devices running at SuperSpeed or higher speeds must report a
bcdUSB of 0x0310.

Change-Id: I253d0114fadb33456c7a0eb823d29aade1f33dc1
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 008f057b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1634,7 +1634,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
			cdev->desc.bcdUSB = cpu_to_le16(0x0200);
			if (gadget_is_superspeed(gadget)) {
				if (gadget->speed >= USB_SPEED_SUPER) {
					cdev->desc.bcdUSB = cpu_to_le16(0x0300);
					cdev->desc.bcdUSB = cpu_to_le16(0x0310);
					cdev->desc.bMaxPacketSize0 = 9;
				} else if (gadget->l1_supported ||
						enable_l1_for_hs) {