Received: by 10.192.165.148 with SMTP id m20csp5414641imm; Wed, 9 May 2018 04:50:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrKlEinliK/VWIjDi+uSbe7qM+zMv4pzqmboOwyzxEkxny7gUaORBNGwF9iNWHwJRfkQDHq X-Received: by 2002:a17:902:2cc3:: with SMTP id n61-v6mr1089778plb.255.1525866620910; Wed, 09 May 2018 04:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525866620; cv=none; d=google.com; s=arc-20160816; b=Wmw3c3X4h4EqiVJyFeEktFRXy4muCMdyK5/qSGnDJSqvQCwwAflJX3eBYa2YU7+RN5 KA9AgBHOuRt14DuHnO3tmPtbwZKN5es2laF/6tjBgDBMIReBHWagy2vHqtLfJR4fb36x 1K9vl9SXdEVOuE+37DlRUT7KDaYVIFnq235ey8Ouf+J6uUeOv4hYH32Q4xihpuUpbo+R yKYrg9/So20gRsOGLcORr6sYPC/a85yxdOcXjUn61jmSYRLnmceMBTUFPof/CLVXkN/Y AMoxJkpMyGeo3SeNrCaXC+xgGqSCbQxwAgIiUvqMIBaEfHu9op+gFA3nBlVVXshYU8XI I1sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=TM/fvOfDgJ66A9g6kkvxNsZ4i4YcdfM2tP8i04PNqQ0=; b=sByofxnDAYupviX9QlWZVXh0ZcVGP9qJ5doobCgaeVlB7tzemotTYBjHwHuzYA7ruT w568gRd6x2dlmga2ItjtR+BJr2AQA7GQG7rAOAv3H0HgjggG3Ybf3I0fu1hoN1xuaGXa bvltDJ/Ry2EkJpXslzyBYTK1zBzn+SlhDEye3XuhoOpjjAEBFgPohBInBTk4BbbPdVft C0z1czz/cLC74S/lss7axS4AT9QcQVhk3qx/OSFNH200rxEVFtLtQOwVX4MSdUq7kY94 5d0yQtjEUjy0y42FFFcaFwO1zxYTzogXZ6fQynAQLNhUQLWDE6afEdPwCNdoDb4poTWP McRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si23758528plm.379.2018.05.09.04.50.06; Wed, 09 May 2018 04:50:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934520AbeEILpI (ORCPT + 99 others); Wed, 9 May 2018 07:45:08 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:11386 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S933915AbeEILpF (ORCPT ); Wed, 9 May 2018 07:45:05 -0400 X-UUID: 2eb52b308edf4afa9c7e26bb51cb0733-20180509 Received: from mtkcas35.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 535486368; Wed, 09 May 2018 19:29:20 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 9 May 2018 19:29:19 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 9 May 2018 19:29:18 +0800 From: Chunfeng Yun To: Greg Kroah-Hartman , Felipe Balbi CC: Matthias Brugger , Chunfeng Yun , , , , , Subject: [PATCH] usb: gadget: composite: fill bcdUSB as 0x0320 for SuperSpeed or higher speeds Date: Wed, 9 May 2018 19:29:16 +0800 Message-ID: <69cc710fa8b7d18c494c9f482fd2b8e6fb7c0c94.1525865206.git.chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 63a7cb8..f242c2b 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1601,7 +1601,7 @@ static int fill_ext_prop(struct usb_configuration *c, int interface, u8 *buf) 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); -- 1.9.1