From nobody Fri Oct 3 15:35:52 2025 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2071.outbound.protection.outlook.com [40.107.220.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BC6830E0FF; Thu, 28 Aug 2025 11:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756380610; cv=fail; b=hz2C7RfmMiST+ifha1ISYJhmY7dee+/ZzfXT8HzIZnUNO0bWpkWDCros4ik06U3y6jjs9B1O83Cxy2rmHMcDXak5W+oMMXbNSLj0+vH5c+GmquYa7BPEcPl2ne9rz4yx4gEi4OuZHrQ5488daEF9NhbzS9XikABK6PskT+SYuC8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756380610; c=relaxed/simple; bh=0jdMBwSWrSCEIO0vW3gRnSq1a1pWLlzovHcqyl15CbQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GX0KlZJ3SRjY+Nc/MiIfD2SPfAC1X3naqa+M6iwg04CoEqUMnjwebV1rsP86TniJusHR+Uh6F+btRWJQotIVGE3EGCfPf2SfBTnO2xuhFXCeQTuxc4g1GylLju9s+P+qWcStsZfM9v0pbdSq9OYGaZ16143ehCabqyYKcpY3DE8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=ssnpcAOh; arc=fail smtp.client-ip=40.107.220.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="ssnpcAOh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b6S0SfU6elb69e1ExQkpay7knrdvTtJBaz0xKzuWIFexrST7WIPlI+p3LX9ETmLcu8YWzeg1Zk8KKJG1GmbTX+/nbY4hv6Y37wrHo+Fhreuc6Ezs4nEGEioqmNsrn2NxAaNrTaLSHMRVlI/4SWIQaucX6+/zYrlRsFDYleAw4YwTDOJZEC9dsVJ8cKcb8XxbILDrlmYouwKMBXHR3sjzHhCsItzemrSe6kNxGSnUIKmldC+ZfTb2mTYE35YGAiajd/KL24Bn2b+h2p0NPgQKVW3DC2qerImCW4RfQezNViQxrNWGusiV5ZDHXhecDfajk3LxcpcAP/7c8UO7eg1nfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i0idRWNbm8foNQstYiSLmb/wjD1Rf6tdvhRn44mwxDE=; b=xi9rQY1E7jOl7adh1+RLsVQBslQdHJewmwbJyki6saPVg4r3lO6iqqFjn4wC1iU/kHHsVXiOtBWku/6CtnPPzVTGh7MD4NVwiZH8LHZTT9JLwlwzgSPWrLp1chyYqZkTKaQA8x0+7WLzvBu/ZwoCRb2yb4jReVI9supWl/mITnnmcGPGlHUCJMesfLd/pKtNMIdaqHH610z8Qm0+qQlUoHuNEvqD55oMOflGLMzo/akEaeXQf92Q5CoM5URbcKVL0DuKtAQMy+hR7+oRTHJZED1tHKK9XXIB7MA495NTMRiI0i58CyuUmBno4OC72aLHMCm1UgPO7oLiu/mI+Rjwxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i0idRWNbm8foNQstYiSLmb/wjD1Rf6tdvhRn44mwxDE=; b=ssnpcAOhhK9ffsVsLO7Q9beGnk5L0j8dFOGOVRiazLdnGrcLA3M3YD8sZN6QRsxwCm3dN66U4QxJ6R2dsb8kIA91jDPEjZhH36yHxj5DtMOX+IQBYhIY7pKM4jp9C9GxgnlkvYpm/4Xqom5ZUZdx4dnDl7AnXXauRWFKAJ7V+Mc= Received: from CH5P221CA0020.NAMP221.PROD.OUTLOOK.COM (2603:10b6:610:1f2::11) by BY5PR12MB4228.namprd12.prod.outlook.com (2603:10b6:a03:20b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9031.21; Thu, 28 Aug 2025 11:30:01 +0000 Received: from DS3PEPF000099DB.namprd04.prod.outlook.com (2603:10b6:610:1f2:cafe::43) by CH5P221CA0020.outlook.office365.com (2603:10b6:610:1f2::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9073.18 via Frontend Transport; Thu, 28 Aug 2025 11:30:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DS3PEPF000099DB.mail.protection.outlook.com (10.167.17.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.9073.11 via Frontend Transport; Thu, 28 Aug 2025 11:30:01 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 28 Aug 2025 06:29:59 -0500 Received: from xhdctallapa40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 28 Aug 2025 06:29:57 -0500 From: Srikanth Chary Chennoju To: , , , , CC: , , , Srikanth Chary Chennoju Subject: [PATCH v2 1/3] usb:gadget:zero: support for super speed plus Date: Thu, 28 Aug 2025 16:59:42 +0530 Message-ID: <20250828112944.2042343-2-srikanth.chary-chennoju@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250828112944.2042343-1-srikanth.chary-chennoju@amd.com> References: <20250828112944.2042343-1-srikanth.chary-chennoju@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: None (SATLEXMB03.amd.com: srikanth.chary-chennoju@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099DB:EE_|BY5PR12MB4228:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f1b32ac-fe25-401b-b8da-08dde6263a25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?rON4EYc+AKcqCHDwh+JP9YwHpKbNykYZRZlJq3+RMBuQPw7ooQ6hQOTIHu1Q?= =?us-ascii?Q?NtUwdE52DFMMp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pIdXWko0?= =?us-ascii?Q?WFhuCxFLPHg/ZPQnOO70bVYgaxsXnSyc2qTFOc9N8O4bfx72fYJh6FseicHD?= =?us-ascii?Q?vbBCtf1JKI+MUDtQiIcHRCUXtd8rzdrmdrWzcFlNabh9YyieN7kPgQi6VedG?= =?us-ascii?Q?JPRBxHXoLj7TKkypj9lVjsGRgBvHFMimJx6eLgeF6+L9/xevgUiTf52JfVpd?= =?us-ascii?Q?DHPfnUvLEsQTo8Lw3VaXMWoyV5AJvpro+ExI21A/KIWppivKQ4wDftlrYv8F?= =?us-ascii?Q?htUGzHBXHhxw6J1c0oU+RNRJt9XE8b6CrThiHOiHWl0CHBZmYFQm0YadjBLv?= =?us-ascii?Q?nlBCQCh/y2M5myh4UrBiDu14WXGW6Nor+kweDArnyNGI1YYxCs9r96xp2eqn?= =?us-ascii?Q?NA9xzwP11Y0DgkjkJo+J2UqUqc9c9FW/cgrOwxx82I/ZTkTKC3KlaOtgYqSn?= =?us-ascii?Q?FGBqNDgcIq3T5eEY1v6PAlQi/CE0hsFmWz0VB+wTg/Z6kQYdp2fjG2t/TeqK?= =?us-ascii?Q?jROtNkBXVUklP0u5BvXLjjrsPLpnD1CplbCTC5wlyGeC7a1ZFqpXlA/nHeN+?= =?us-ascii?Q?Wi01Sv87pWFsDpCUBYSctPgQkwJ9CExhy2S8?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2025 11:30:01.4364 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f1b32ac-fe25-401b-b8da-08dde6263a25 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF000099DB.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4228 Content-Type: text/plain; charset="utf-8" This patch is applicable for Bulk as well as Isochronous transfers. Signed-off-by: Srikanth Chary Chennoju --- drivers/usb/gadget/legacy/zero.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/zero.c b/drivers/usb/gadget/legacy/z= ero.c index a05785bdeb30..0cfb7dec22e2 100644 --- a/drivers/usb/gadget/legacy/zero.c +++ b/drivers/usb/gadget/legacy/zero.c @@ -415,7 +415,7 @@ static struct usb_composite_driver zero_driver =3D { .name =3D "zero", .dev =3D &device_desc, .strings =3D dev_strings, - .max_speed =3D USB_SPEED_SUPER, + .max_speed =3D USB_SPEED_SUPER_PLUS, .bind =3D zero_bind, .unbind =3D zero_unbind, .suspend =3D zero_suspend, --=20 2.25.1 From nobody Fri Oct 3 15:35:52 2025 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2080.outbound.protection.outlook.com [40.107.243.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB243208994; Thu, 28 Aug 2025 11:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756380625; cv=fail; b=KFY7TZVJgb3BZnqqjDnz7RBMAYMxiduUK8se3UWo1Z/+iBCZqs7ipJiIgdErURUObffHY+V5s24/64Nof6ugN32H6stbkYCQVGZzrCeradoas9F9zzaHeMkr+brDARR4K4W1oF8freiTTEsSAQgexL6sj6fUvMkVOVFu8F0V8OA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756380625; c=relaxed/simple; bh=EECE3ZxZwskYBcNCf8ipIVKEAq1jc9+CGJo+sA2ZZqs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mPyQ7gwIIFhsod33WEHB7smwFjRGuBTWrfnuNw4KU06x1xl8iV1UjZzkFOr/0pyJnEiKmLD5XQqmS6/eDYfC0iQd4r8OIC0OROOIzKwtOJHIlaOi+B8i9QDlQIakjcGDypM62uWWQzUpRzxFRiB3MxvQQStSWVznFXUOcr5RPYA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=l5VNLWN/; arc=fail smtp.client-ip=40.107.243.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="l5VNLWN/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gGWzNfBpZ0Ocx33K9wr9mVDfAeQ3EJe2gWXjRUAKMWdvK06QfBEuZ3SsMghPfR62fAPNib/KVwN4xOEfBifZdMMYHQN/3LZF3hEA/LoxAqJeIdiFp1h1aImnK2NP3Rd8wYYHKN+jTO8S8pbyP8HQhCi+bGf0j/VqO1/sf3BqlEP1ClGAuPctJdHbHqQTiUhPrLZMf/4gP0/7JxFs2STUh/jLLYr83P/sWqwuXijlBV69CchCcrVXe14ybvFKQ8StbMgf+OToKUZtph9iccJr1ZNVsidXEIYvKYS5rvprdUsMYbCbkYBMJYXsdVd8VFHMBGGFb2azDP99rkwRHr4QMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SWB+gfYff3N3mqt66pqlMXMTKlgjZTj2FDleFdCsUEo=; b=c5SC2jG3KYBoXoJe3OaXwTml4yVoz1qHXQfsMIE7xqc/wQNIcpq9P1yxXg/BPd8lfEcr3vGbPLZnUMxrmRCJK51AW2pPkjGxzzSwHbQClp08OuTIllgYNNlesuByc2PKlUqa1BXjsAFE7PhsoG6zUZdBa5O5nshzwdrlS1mIvSrGutxrNKrggkev1kpxMBcyjElhOimWKqlMZUbSMljCVN+7gl+c6HTJ2scDVMBf0GAk8fncex7aPdfzUQpE9ymy90+d0cauN19ngvqBRLDXQqUp9JdWF03T8kBvHRO0zx8sMsknLeF9bt3zpdDA+8PV4r6rXv2bOg6ZkK/raQCxyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SWB+gfYff3N3mqt66pqlMXMTKlgjZTj2FDleFdCsUEo=; b=l5VNLWN/fXPL/Ba1lic8iW+2+gr31t0W526jGriAWrVtr+MWnyazk18qWgkL1q922gPPsxvaaouLybqVcrqFi/qt5gxqb8QdWgb6YgzXq3tylRTJ9jMPlHllOnUcl3LvhE+yC6l9R8HX3DADxgDoRC6CLve/qKnl7lo1TZ/jkhQ= Received: from BY3PR10CA0003.namprd10.prod.outlook.com (2603:10b6:a03:255::8) by IA1PR12MB8538.namprd12.prod.outlook.com (2603:10b6:208:455::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9052.20; Thu, 28 Aug 2025 11:30:15 +0000 Received: from SJ1PEPF00001CE2.namprd05.prod.outlook.com (2603:10b6:a03:255:cafe::43) by BY3PR10CA0003.outlook.office365.com (2603:10b6:a03:255::8) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9073.17 via Frontend Transport; Thu, 28 Aug 2025 11:30:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SJ1PEPF00001CE2.mail.protection.outlook.com (10.167.242.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.9073.11 via Frontend Transport; Thu, 28 Aug 2025 11:30:15 +0000 Received: from satlexmb07.amd.com (10.181.42.216) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 28 Aug 2025 06:30:04 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1748.10; Thu, 28 Aug 2025 04:30:04 -0700 Received: from xhdctallapa40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 28 Aug 2025 06:30:01 -0500 From: Srikanth Chary Chennoju To: , , , , CC: , , , Srikanth Chary Chennoju Subject: [PATCH v2 2/3] usb: gadget: f_sourcesink support for maxburst for bulk Date: Thu, 28 Aug 2025 16:59:43 +0530 Message-ID: <20250828112944.2042343-3-srikanth.chary-chennoju@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250828112944.2042343-1-srikanth.chary-chennoju@amd.com> References: <20250828112944.2042343-1-srikanth.chary-chennoju@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CE2:EE_|IA1PR12MB8538:EE_ X-MS-Office365-Filtering-Correlation-Id: 5219c469-c956-4674-336e-08dde6264243 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?JFKfaaIF6DSpVXAXw59YB/caTXGzQYD7GJWv431/+BrSgE9n86TCfLnlH8S8?= =?us-ascii?Q?RTJkN7qiFa/MsLPCZBLD9TkMMdJoUomsbIct4rGBzSs/KEY8FtCAbzpabQfo?= =?us-ascii?Q?2MwiCcidosFWVJotqH3dvyWB8/kaVRmp0P+Aam2aUaK9LysoffYtLjX9v/Ps?= =?us-ascii?Q?sbsQMWptTJFXfVjRsfm0HpLci91h4DE6mPnrnIz4d+am1HUqRpsBARRFv/wh?= =?us-ascii?Q?WDQuCoaHeshfx5Efundbu/EZr8QrIru4WHNkgnx4kmUw2P4Q6DLg/Z+ouJSc?= =?us-ascii?Q?6KtSwfrKtqD6QKAoJ4RUADFlX7/jO169RKLeqBYHtg2hgdw3e5uhiVLU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Izb5/XkrX7jN3y+Nb/qaUAN+WwhrtjJG9BSzGmBc?= =?us-ascii?Q?OBl9gBN1OPQuRlyFKYaQNdwvdi4sTWnoSIDIyl2A5x0Fvs3zEbCuDs4ANSmS?= =?us-ascii?Q?cAulM6DQ2a+HRJ/E22mYkKUvIcW34IlJ4ZizuvKo4+1dBaz+738K0xd499f/?= =?us-ascii?Q?IgjJCHm40BzuNA43PkG37eUzNkY6+BsEH6IxbQi+Ri5EHntJjeGrY8n8qg/H?= =?us-ascii?Q?vVPd3ImGB4DJmAg+QYFQ47PL7SphNnAfkXBRjLh5TYMhNznuE6ybJyIlJsK0?= =?us-ascii?Q?72FLDmP4TTHbhij/L/3KDZK+dWc/rqCHAwKS?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2025 11:30:15.0310 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5219c469-c956-4674-336e-08dde6264243 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00001CE2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8538 Content-Type: text/plain; charset="utf-8" This patch supports bulk_maxburst. Without this change we are not able to achieve performance for super speed plus device.Without this fix, we confirmed through lecroy that it is sendingpackets with NumP always equal to 1. Signed-off-by: Srikanth Chary Chennoju --- drivers/usb/gadget/function/f_sourcesink.c | 9 +++++++++ drivers/usb/gadget/function/g_zero.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/usb/gadget/function/f_sourcesink.c b/drivers/usb/gadge= t/function/f_sourcesink.c index ec5fd25020fd..a3a69166c343 100644 --- a/drivers/usb/gadget/function/f_sourcesink.c +++ b/drivers/usb/gadget/function/f_sourcesink.c @@ -45,6 +45,7 @@ struct f_sourcesink { unsigned isoc_maxpacket; unsigned isoc_mult; unsigned isoc_maxburst; + unsigned bulk_maxburst; unsigned buflen; unsigned bulk_qlen; unsigned iso_qlen; @@ -328,6 +329,10 @@ sourcesink_bind(struct usb_configuration *c, struct us= b_function *f) source_sink_intf_alt0.bInterfaceNumber =3D id; source_sink_intf_alt1.bInterfaceNumber =3D id; =20 + /* sanity check the bulk module parameters */ + if (ss->bulk_maxburst > 15) + ss->bulk_maxburst =3D 15; + /* allocate bulk endpoints */ ss->in_ep =3D usb_ep_autoconfig(cdev->gadget, &fs_source_desc); if (!ss->in_ep) { @@ -341,6 +346,9 @@ sourcesink_bind(struct usb_configuration *c, struct usb= _function *f) if (!ss->out_ep) goto autoconf_fail; =20 + ss_source_comp_desc.bMaxBurst =3D ss->bulk_maxburst; + ss_sink_comp_desc.bMaxBurst =3D ss->bulk_maxburst; + /* sanity check the isoc module parameters */ if (ss->isoc_interval < 1) ss->isoc_interval =3D 1; @@ -852,6 +860,7 @@ static struct usb_function *source_sink_alloc_func( ss->isoc_maxpacket =3D ss_opts->isoc_maxpacket; ss->isoc_mult =3D ss_opts->isoc_mult; ss->isoc_maxburst =3D ss_opts->isoc_maxburst; + ss->bulk_maxburst =3D ss_opts->bulk_maxburst; ss->buflen =3D ss_opts->bulk_buflen; ss->bulk_qlen =3D ss_opts->bulk_qlen; ss->iso_qlen =3D ss_opts->iso_qlen; diff --git a/drivers/usb/gadget/function/g_zero.h b/drivers/usb/gadget/func= tion/g_zero.h index 98b8462ad538..3f327e37f398 100644 --- a/drivers/usb/gadget/function/g_zero.h +++ b/drivers/usb/gadget/function/g_zero.h @@ -20,6 +20,7 @@ struct usb_zero_options { unsigned isoc_maxpacket; unsigned isoc_mult; unsigned isoc_maxburst; + unsigned bulk_maxburst; unsigned bulk_buflen; unsigned qlen; unsigned ss_bulk_qlen; @@ -33,6 +34,7 @@ struct f_ss_opts { unsigned isoc_maxpacket; unsigned isoc_mult; unsigned isoc_maxburst; + unsigned bulk_maxburst; unsigned bulk_buflen; unsigned bulk_qlen; unsigned iso_qlen; --=20 2.25.1 From nobody Fri Oct 3 15:35:52 2025 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2050.outbound.protection.outlook.com [40.107.94.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40C5C208994; Thu, 28 Aug 2025 11:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756380634; cv=fail; b=ZMnCQRsLgYjB0dg4DPtG0XNw9Vm+fi5C5T7hFYNS7OPzwSxZmmllkcjsSJE7hAE+M+4SBz1jMblx7mT3NQnI2fVJEptdJKEpWAsyxtLU6/ZMkV90pQcdw2a67oXMCGA8rt2wIRh5nycvVDaO/791xzpRKTu+orA8VVP4vUxY074= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756380634; c=relaxed/simple; bh=ZW5oQQwQOl91dEY2a4IRXYtsE9EUX42HwrIRLt1SGnE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=phiuOKAJ6HFbgsvecXaFQX4FgTsFq/30l3/ojPVNKLzTCvyBA2IgThXUG3Y3jkFz+3MkLhHRh7JOY/SLuWiI3ZQjkbsFMIVlp2pqsIxrIoTOj5b3sC8iA+SECD/lJF7r/JF0p+DV2vGQmwK/cGfo0MI4tISQjoiBpNIWdJUbZaM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=C9cwxVvE; arc=fail smtp.client-ip=40.107.94.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="C9cwxVvE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rgOxM2rMOqYO9jgzy1yIGCw0DJR7lQRPqJX2xRtOKacD/g7BH7xVpXT6/Dy3ho4EIN6qSYvYdH1PAgvhSIr0lGLgqhGQNt48UjUMPGGb7BLlJVw01jpSyGWyqTUGUOa6VNt0C34frVd+PT9SRfdelpy7VFr+3Tr56icBJmqSEj5M+uoLtGuYgdsJTTlXj4N/X78NFHr/JxprEe60uHUIz2p+FNKd4y+G1Y2nF8SunjQrCpcBLCKVsL/qqctuE8Tebok167nPfWOAHsF4a+ky8faZaLoiMcgy24MD73NhkCIW0KEQRWrG+qDw5uO9RLxk+l4NJNDkQglKMi9BTXKOzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EaVe6+EdNumKhu+obM1hpLejQVVP5C2HuCP1OQVYX1g=; b=DUV+WDsscinHC6E5wd9MQ49w2ZrELuh7WuSs0cOdg7w01moRZ8YAt6FCe/ApJCXmBKWWC2dwi5WPRKpBe3Zmcb0n0nRqfAcLhl8AAa3wNtfSGZ6+YwKunyj5tFitfQGv1qsh7vZ4GbC08HYHuxnGhYbvYQNt3jbOoTo1tEz5I2tuvQwWeLOvHI3+B2sc+y21VnKVcrTQL4opvi4JiZbrITuBghVXU5HhXBZW+VZZBHqoEmfBUH1p2y6XJ3W269HFQnfOsqQsLb7dy+YGuPS77uwLl0eKkJnbHz+/7cVvUi4zaFeUzM7lRH3KVj4xCBaBomPGm4YAIxQQM+xrzPOcug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EaVe6+EdNumKhu+obM1hpLejQVVP5C2HuCP1OQVYX1g=; b=C9cwxVvEyom3CYuFLAjrTSkzpvbgG6UibD5RZa80LJfPVC0etrp4PmzeOioYNVCYbe7FWL4lPIe5WSeGwUE5NWQ08ZxDmNw5CSxSmnEKI/+CeeaF7d4RtQ1k2Q7z4go35qqkbEJrdqGYGlSOnWC3H6AlM3vsHWy8wJHqedYlvsc= Received: from BYAPR01CA0026.prod.exchangelabs.com (2603:10b6:a02:80::39) by MN2PR12MB4318.namprd12.prod.outlook.com (2603:10b6:208:1d8::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9031.24; Thu, 28 Aug 2025 11:30:25 +0000 Received: from SJ5PEPF00000208.namprd05.prod.outlook.com (2603:10b6:a02:80:cafe::15) by BYAPR01CA0026.outlook.office365.com (2603:10b6:a02:80::39) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9073.17 via Frontend Transport; Thu, 28 Aug 2025 11:30:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by SJ5PEPF00000208.mail.protection.outlook.com (10.167.244.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.9073.11 via Frontend Transport; Thu, 28 Aug 2025 11:30:24 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 28 Aug 2025 06:30:08 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 28 Aug 2025 06:30:08 -0500 Received: from xhdctallapa40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 28 Aug 2025 06:30:06 -0500 From: Srikanth Chary Chennoju To: , , , , CC: , , , Srikanth Chary Chennoju Subject: [PATCH v2 3/3] usb: gadget: f_sourcesink: Addition of SSP endpoint for ISOC transfers Date: Thu, 28 Aug 2025 16:59:44 +0530 Message-ID: <20250828112944.2042343-4-srikanth.chary-chennoju@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250828112944.2042343-1-srikanth.chary-chennoju@amd.com> References: <20250828112944.2042343-1-srikanth.chary-chennoju@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF00000208:EE_|MN2PR12MB4318:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c4acb40-2f53-4798-4677-08dde62647c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?f93PyFZJDUtxzyDNii7gqn4FW3TgYO04TFv/Yhyw9DVc7UvP6Rd0rshtm0oA?= =?us-ascii?Q?MTg05+y3+GD035BrFspi6+55Iw7eteIfCvpylDfWsZgCaZhfQz23x8BMSu9y?= =?us-ascii?Q?M0iTKjWQd+xjMHwk+8lg2kzPBz4Vxhyu/HazsfwLKWYAdPoVVAQqxkJ64h9m?= =?us-ascii?Q?fJiLkBzac/FB6C/Hr7SEupaUXLdjDlW4LQO/ANIKWh9OrOQamaKLQNbpw6YC?= =?us-ascii?Q?K0hiG9LmUk4INQJgjI0WBNAAw6GvMxhSFTdpxgedB8WzaatA1NQoJzXLc+je?= =?us-ascii?Q?8nQT7IMpFBRTu5XcApYQcuCq2TWKU8/NgMNw7Si6jfgj7y2HQ/bq53ujeapN?= =?us-ascii?Q?2a8nBG3C319Q5tvD58do+Jjo+ql2VHm7oObHfG8cvnOt/jRCwvURBuT9WWJe?= =?us-ascii?Q?5b3D1xQcSvzvmyVspaNmHjdMAF+PmARpmW1U2q7gxz/yvCUocoXm5orYST3t?= =?us-ascii?Q?niKdSpGl8Q3ftg0A7tSDx41oISeLQ4zHpVbLDrFCnKCykDNfO/qlFIo528cr?= =?us-ascii?Q?At0Ug2xVax+LsANU0GkQNnSGo6PbveSgoc56FT8gIDdN4JYzqMiQvHE/qSAs?= =?us-ascii?Q?T+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UoweSi?= =?us-ascii?Q?2HxLt1ucLUj452QcoE5yjmyk3v/fP+02FTxv?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2025 11:30:24.2210 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c4acb40-2f53-4798-4677-08dde62647c1 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF00000208.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4318 Content-Type: text/plain; charset="utf-8" This patch is created to support super speed plus endpoint for Isoc transfers. Now super speed endpoint companion is accompanied by super speed plus endpoint companion. With this change we could see the Isoc IN and OUT performance reaching to ~749MB/sec which is 96K per uframe. The performance numbers are confirmed through Lecroy trace. Signed-off-by: Srikanth Chary Chennoju --- drivers/usb/gadget/function/f_sourcesink.c | 23 ++++++++++++++++++++-- include/uapi/linux/usb/ch9.h | 2 ++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/f_sourcesink.c b/drivers/usb/gadge= t/function/f_sourcesink.c index a3a69166c343..79efb6295725 100644 --- a/drivers/usb/gadget/function/f_sourcesink.c +++ b/drivers/usb/gadget/function/f_sourcesink.c @@ -232,6 +232,12 @@ static struct usb_ss_ep_comp_descriptor ss_iso_source_= comp_desc =3D { .wBytesPerInterval =3D cpu_to_le16(1024), }; =20 +static struct usb_ssp_isoc_ep_comp_descriptor ssp_iso_source_comp_desc =3D= { + .bLength =3D USB_DT_SSP_ISOC_EP_COMP_SIZE, + .bDescriptorType =3D USB_DT_SSP_ISOC_ENDPOINT_COMP, + .dwBytesPerInterval =3D cpu_to_le32(1024), +}; + static struct usb_endpoint_descriptor ss_iso_sink_desc =3D { .bLength =3D USB_DT_ENDPOINT_SIZE, .bDescriptorType =3D USB_DT_ENDPOINT, @@ -250,6 +256,12 @@ static struct usb_ss_ep_comp_descriptor ss_iso_sink_co= mp_desc =3D { .wBytesPerInterval =3D cpu_to_le16(1024), }; =20 +static struct usb_ssp_isoc_ep_comp_descriptor ssp_iso_sink_comp_desc =3D { + .bLength =3D USB_DT_SSP_ISOC_EP_COMP_SIZE, + .bDescriptorType =3D USB_DT_SSP_ISOC_ENDPOINT_COMP, + .dwBytesPerInterval =3D cpu_to_le32(1024), +}; + static struct usb_descriptor_header *ss_source_sink_descs[] =3D { (struct usb_descriptor_header *) &source_sink_intf_alt0, (struct usb_descriptor_header *) &ss_source_desc, @@ -264,8 +276,10 @@ static struct usb_descriptor_header *ss_source_sink_de= scs[] =3D { (struct usb_descriptor_header *) &ss_sink_comp_desc, (struct usb_descriptor_header *) &ss_iso_source_desc, (struct usb_descriptor_header *) &ss_iso_source_comp_desc, + (struct usb_descriptor_header *) &ssp_iso_source_comp_desc, (struct usb_descriptor_header *) &ss_iso_sink_desc, (struct usb_descriptor_header *) &ss_iso_sink_comp_desc, + (struct usb_descriptor_header *) &ssp_iso_sink_comp_desc, NULL, }; =20 @@ -423,7 +437,7 @@ sourcesink_bind(struct usb_configuration *c, struct usb= _function *f) */ ss_iso_source_desc.wMaxPacketSize =3D ss->isoc_maxpacket; ss_iso_source_desc.bInterval =3D ss->isoc_interval; - ss_iso_source_comp_desc.bmAttributes =3D ss->isoc_mult; + ss_iso_source_comp_desc.bmAttributes =3D USB_DT_SSP_ISOC_COMP | ss->isoc_= mult; ss_iso_source_comp_desc.bMaxBurst =3D ss->isoc_maxburst; ss_iso_source_comp_desc.wBytesPerInterval =3D ss->isoc_maxpacket * (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1); @@ -432,12 +446,17 @@ sourcesink_bind(struct usb_configuration *c, struct u= sb_function *f) =20 ss_iso_sink_desc.wMaxPacketSize =3D ss->isoc_maxpacket; ss_iso_sink_desc.bInterval =3D ss->isoc_interval; - ss_iso_sink_comp_desc.bmAttributes =3D ss->isoc_mult; + ss_iso_sink_comp_desc.bmAttributes =3D USB_DT_SSP_ISOC_COMP | ss->isoc_mu= lt; ss_iso_sink_comp_desc.bMaxBurst =3D ss->isoc_maxburst; ss_iso_sink_comp_desc.wBytesPerInterval =3D ss->isoc_maxpacket * (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1); ss_iso_sink_desc.bEndpointAddress =3D fs_iso_sink_desc.bEndpointAddress; =20 + ssp_iso_source_comp_desc.dwBytesPerInterval =3D ss->isoc_maxpacket * + (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1) * USB_LANE_SPEED_MANTISSA= _GEN2_BY_GEN1; + ssp_iso_sink_comp_desc.dwBytesPerInterval =3D ss->isoc_maxpacket * + (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1) * USB_LANE_SPEED_MANTISSA= _GEN2_BY_GEN1; + ret =3D usb_assign_descriptors(f, fs_source_sink_descs, hs_source_sink_descs, ss_source_sink_descs, ss_source_sink_descs); diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h index 8003243a4937..22782c5cb2f3 100644 --- a/include/uapi/linux/usb/ch9.h +++ b/include/uapi/linux/usb/ch9.h @@ -702,6 +702,8 @@ struct usb_ssp_isoc_ep_comp_descriptor { } __attribute__ ((packed)); =20 #define USB_DT_SSP_ISOC_EP_COMP_SIZE 8 +#define USB_DT_SSP_ISOC_COMP (1 << 7) /*support for SSP ISOC EP COMP*/ +#define USB_LANE_SPEED_MANTISSA_GEN2_BY_GEN1 2 =20 /*------------------------------------------------------------------------= -*/ =20 --=20 2.25.1