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

Commit 3069db1b authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Chandana Kishori Chiluveru
Browse files

usb: gadget: composite: fill bcdUSB as 0x0320 for SuperSpeed or higher speeds



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

Change-Id: Idec7b68f130dbabbffc951f5a5b0df5298cb23b1
Signed-off-by: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: 1ef6c42afc76d2e88a7972e2f59082305d9945bc
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent fe47cf3d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1760,7 +1760,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(0x0310);
					cdev->desc.bcdUSB = cpu_to_le16(0x0320);
					cdev->desc.bMaxPacketSize0 = 9;
				} else if (gadget->l1_supported
						&& !disable_l1_for_hs) {