From patchwork Wed Dec 11 00:32:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thinh Nguyen X-Patchwork-Id: 13902667 Received: from mx0a-00230701.pphosted.com (mx0a-00230701.pphosted.com [148.163.156.19]) (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 D81CC8494; Wed, 11 Dec 2024 00:34:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=148.163.156.19 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733877263; cv=fail; b=C6utK6dKZglATb3bI8m1fZ+1Q6WOVsPvFwiu8ItFIyPjRFxLw4xq/FGgnUAOhuRBW2l3Dc+6uk8tZEgvJNElc//cPHWDJzz0SKgmwpSM5ajVIsl8ZZNf98yqPC53wxPuSckLqHmfKYK/qHTGbgpbKxsYvXkWw8OQlrHRxm7yYnE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733877263; c=relaxed/simple; bh=+bsjUAdAtpqAtbhC31cTF+QdCim13WCA7LORk4FpD3A=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=TNSAURTmG1drbT76BzqkbmvYVX1BL/82OvJz+yFAp1scbJesoufEbyIvGEj3PefD8rB7lU9PPpU9aiuaQMwvXPZhqLc4vosSUEHduDyrpcS2AAw/tpiNCGhajWzkmR9j4y4Sh8Pb2EvxCA6WB1nrq9aIgf++WHv/AnnTKZYE/YI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=synopsys.com; spf=pass smtp.mailfrom=synopsys.com; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b=ErkuAD+k; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b=erlQ37M3; dkim=fail (1024-bit key) header.d=synopsys.com header.i=@synopsys.com header.b=YqGJDnbS reason="signature verification failed"; arc=fail smtp.client-ip=148.163.156.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=synopsys.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=synopsys.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="ErkuAD+k"; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="erlQ37M3"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="YqGJDnbS" Received: from pps.filterd (m0297266.ppops.net [127.0.0.1]) by mx0a-00230701.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BANMPTv010812; Tue, 10 Dec 2024 16:32:05 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfptdkimsnps; bh=+8UHCyE9bnErKEE2QanncECjkUbln3DuEji9yWgKV28=; b=ErkuAD+kw3dt KiIRAbVH5m1fB0OEJ/Tvv+DnXIN51fLR9dB5BHFXC1LFC/kBXtmkDFe71NQtICc0 VPJl6kgnTJkUkejKmZyJEWr2rhK6PG4USubyfwQ4AcmwmedCFwmgEozT5GDUYy3x SkUcTJZdvKsDFEnxs3rsS02Iy1Gs1fG3iLxM/MpL/lpr0kneJPVLuOYpiuAS8hVm NdRMO5WmdGaz3ayp/SHpcrK8Dw6WzZpF7+bkWidej0P7jikLn3T0oiTKQdfTYvs2 tYq6MNQ7JTTYs+JC9k88HZ2s17/jO4PaQgEcYEhrCSCaYEct2Ag7qfBNSKh7eaCp UWg+Ht347w== Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.73.133]) by mx0a-00230701.pphosted.com (PPS) with ESMTPS id 43cpgb9ptw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Dec 2024 16:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1733877125; bh=+bsjUAdAtpqAtbhC31cTF+QdCim13WCA7LORk4FpD3A=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=erlQ37M3bUN35bW3eeDAAjzDnhvb7ZgrNanXQ6HOeh7kQLjVmhsmZIedabbA+erwF 3QPqFqwRLekTLEmJ+HohJD77KF8rSjzazWJxzW9MetwTdEoFGLCnT4guZ9vwlOuSM5 wqXw21FUXIcDiQ9ni8FqDkzNu60+XSjhOmRhwVOiuXvRywffR68L9a4GiZphMMja+H dFE3mbFrA1RIEX7pqTbGkS/82FwXe4n2zMaE/R/IEilrmpLBeaGXQ38ObGm+wqWl0g 6YOTVtNIXpSiG5z0yQPm4JVnCXUz8sOUKtNfWixShPTdmJZjqxVVHzxpK67ZVs8LUN noQQ/51zeA1vw== Received: from mailhost.synopsys.com (sv2-mailhost2.synopsys.com [10.205.2.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 3372040126; Wed, 11 Dec 2024 00:32:04 +0000 (UTC) Received: from o365relay-in.synopsys.com (us03-o365relay3.synopsys.com [10.4.161.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "o365relay-in.synopsys.com", Issuer "Entrust Certification Authority - L1K" (not verified)) by mailhost.synopsys.com (Postfix) with ESMTPS id E6A20A009C; Wed, 11 Dec 2024 00:32:03 +0000 (UTC) Authentication-Results: o365relay-in.synopsys.com; dmarc=pass (p=reject dis=none) header.from=synopsys.com Authentication-Results: o365relay-in.synopsys.com; spf=pass smtp.mailfrom=synopsys.com Authentication-Results: o365relay-in.synopsys.com; dkim=pass (1024-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=selector1 header.b=YqGJDnbS; dkim-atps=neutral Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2175.outbound.protection.outlook.com [104.47.55.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by o365relay-in.synopsys.com (Postfix) with ESMTPS id 9A58B4041D; Wed, 11 Dec 2024 00:32:03 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CqxBVVBUDNvVBtm8gSHE5WmxaBkj0miVrjychrTo7W2dsxiOx79I6CkiXc03vSIkd4H7XRzNeWbrdhN12ml5MEU2UCtyxYsF5cS3BbkMutanLSPpdbObWbO5+5mdPKt6YRZwfxhzmhXuxdrObHkb1Zjm8Up4GayOJ32CmgOuRHfLQDs88rzWa9EhBWZFH9ZCpjVz7ZiFTuatanMDmfMJon6lo2vBeiq6iMKQIDVoJfmbj4N6LX0tnYVKhu/x7axL0wFFRt4PoWZ4Gv5SRY8gEdsTj7ysP7lBZiZ/riAjUtd6scUPxXZQT5TiOmbwqfnYabaUhQ0Byxpz0yLYxeDaDw== 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=+8UHCyE9bnErKEE2QanncECjkUbln3DuEji9yWgKV28=; b=CZbMsUfIilQty+XY5pR3ijCyAlrZFwixdbDRCw3yrp0ul4JnRE3rMJmFV6yappb8aKtLWHZfVUMMSpEGuGib8uPwE3Y/C3oMBXoHnpQMn0g2179ecWXyFIRHms185FBG3xHOy52YxjiGp1SJiMM62ddDKY1p6Xo0E/iRumwLsEw024qnLKuzfHvKJmlwGta9znoJdAhgW6GKyWdL6IEMVabcawLoQde6czg4gqxd51EYkA38DB6KWbPaxq6JvNDGtsEN2vZli1tfbEGvk8ikThsBpQThn7fhgbmxPhqFfcb1gCwf2kKL8QaybRQ/RydvmkJwzjsfIMEpE1lobaxBeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synopsys.com; dmarc=pass action=none header.from=synopsys.com; dkim=pass header.d=synopsys.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+8UHCyE9bnErKEE2QanncECjkUbln3DuEji9yWgKV28=; b=YqGJDnbSVAFC/s6lYULwAy1rNbBPFYVhVbcn7mutESePoqK9l/kvR835FaXXgjzNi8ThaZVcT5TLzzpG5990sLC6jyz/Gv1PROFit2UlfnG4Zsh3e3rJQDPadkGJwfjK+hCjovzgt11Oaw6b3iSY9iC1DoRwqfih7ukTqo5Mcck= Received: from LV2PR12MB5990.namprd12.prod.outlook.com (2603:10b6:408:170::16) by CH3PR12MB7691.namprd12.prod.outlook.com (2603:10b6:610:151::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Wed, 11 Dec 2024 00:32:01 +0000 Received: from LV2PR12MB5990.namprd12.prod.outlook.com ([fe80::3d09:f15f:d888:33a8]) by LV2PR12MB5990.namprd12.prod.outlook.com ([fe80::3d09:f15f:d888:33a8%7]) with mapi id 15.20.8251.008; Wed, 11 Dec 2024 00:32:01 +0000 X-SNPS-Relay: synopsys.com From: Thinh Nguyen To: Greg Kroah-Hartman , Thinh Nguyen , Nicholas Bellinger , Sebastian Andrzej Siewior CC: "linux-usb@vger.kernel.org" , "stable@vger.kernel.org" , Homura Akemi , Alan Stern , Christoph Hellwig Subject: [PATCH v3 05/28] usb: gadget: f_tcm: ep_autoconfig with fullspeed endpoint Thread-Topic: [PATCH v3 05/28] usb: gadget: f_tcm: ep_autoconfig with fullspeed endpoint Thread-Index: AQHbS2QY9dYrSv50sk+mzfZnuPzePA== Date: Wed, 11 Dec 2024 00:32:01 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV2PR12MB5990:EE_|CH3PR12MB7691:EE_ x-ms-office365-filtering-correlation-id: 55a775d8-4462-4e35-9075-08dd197b3a93 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?V6IgZ5kiRXE+SairDKxQa2fNeT?= =?iso-8859-1?q?cMhdrkjAYcrGPoGL97plk0XerHf0Du0eaFTM9TX9rUA06j7lUSXn4FFUN1w2?= =?iso-8859-1?q?CVoMk5x3+BVXeZdA1jEfUosfvSRdmyHfrs6HNG6Y9iqccJX3eZUkVH1lyojv?= =?iso-8859-1?q?6TsiDpGxFKxr0Z4gDXgVHfHGS9RAMYcKqP8+YaC4qbgoO56+t/AQYwqCKBqy?= =?iso-8859-1?q?kXHFv94+2HQ6igowZzKKv5CuYx7WT3I8DQtLbTwy8LY9y8OXkAC+BFHnf1We?= =?iso-8859-1?q?mxKXiG5gcQUGeYboWBEJwGTn+pAKYE662EN5FBPucWzFcjDzjgSQ5Ly7XhHu?= =?iso-8859-1?q?lUzvFFr/F6Gch7IhObTxIoteOsCoc6Q/WKNysEyV1oFM+qfv/HwHzKy9vjA1?= =?iso-8859-1?q?N6hfhOiDuLhzEqDl/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K6qoxzkOoG?= =?iso-8859-1?q?CogRGuuifarq7Jc3NkiGg26M3rD0THzg5RVcfJMA243WTxIhQ5bBrx6InyiQ?= =?iso-8859-1?q?7iSkuFb445i+WzY80Rr2pSHkKB6SXz+HUHg0iBRGFd/B2e++fTDGLxtnrhHQ?= =?iso-8859-1?q?9sGNlmTAB6sqGkwxcg2iWmGQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5990.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?XWDBWRBuxj3Hk0FFOmCD/li?= =?iso-8859-1?q?m8GMnjnUemC36O1JDQfc0yzJacJo1dn1XvvDrBngvpFgbbcXgxHPXMpidqcF?= =?iso-8859-1?q?R5jVeU7qx8xy5YBp4edGPD9RhERE773uut5CTNc6oaAv5ya0nmVXBbXl75Kx?= =?iso-8859-1?q?nqTRtwXkjNec2AK9jP0Xwdfs6IUkPxiVHXnvWEv3j9Y5Xc4mHrrRKiowCOFs?= =?iso-8859-1?q?QS7mIfIapZUSHT37NgAN/QhbahQP9l0GfVDMQcFGNh4Zf3iqmrVYvydp20B4?= =?iso-8859-1?q?qWRhi72+BXYcR0ciAp/EVwYLuASIcH01bhPoUdD5ngV0leuPv5Ol0vH2g8AV?= =?iso-8859-1?q?vsGeoyzFdchTkA/smhS+im5ysLaxiD5nJagen1ynrjyz4CJsLQJb1vOCG3eJ?= =?iso-8859-1?q?wp7aeqRmHVoHQ4PmybaAuREmxNqIaiMuaA6SmEl0iTyb525TOg3ObMEW53Fa?= =?iso-8859-1?q?mBt824haPa9KhawjojutXcmL8qKT2z6MHvHgIH69h5Y/Q+2DnNnYlegLOJfb?= =?iso-8859-1?q?DS6niWvOBW+6wonaI/yXd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vsBop1+RMngLXs?= =?iso-8859-1?q?iVMVrJ6UDcqeVjqxGYwdmsrUSGG0UJmw97Kd8bjqPFbUDBSeX/XyVu4VBuNJ?= =?iso-8859-1?q?g/uVNk+XGMy6Xqxg0f8uLFUgyyg3i3obu4RzmvVNa2Gt2c5Pdu0ik7lsv7x+?= =?iso-8859-1?q?OwSV2ljbU6gUqam2K8r70a2fJ5gZZFdGqBt6M7MtseHRoAEdWiu5iPCu/RrD?= =?iso-8859-1?q?RXjDia4sA+E7J0stB?= Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: SpCPeRNQkpZDERC/EO1Hue09aj8PneNrNChoDZEtN3jCDJqn5ob7BeL5J+ij459FuGh8br4IQjQ1nUDhGmm5sy84R/3guWfCd7rzHkWkMhVOwP9SZ1QIY589xpVr2qnjqx11L4bZTniPi/I/KcaBqIzylWssq4YVHfPIFPCr0IMUZyXIWsXm+ipn/L/CN7NInqv5lnudjQY4NyliOgTs3M/rN8XtKblwVruu1SDEy1fM2l0f42b1NZ3zdat1qAQEhm08tBapt0OS7Jt8XyP0A43K3voRyST0iFSRigRI1Qthe2cZxjCTHD3XROG4Zs/ep52EdMj9avax8H8w5m51ORJ8UO/6OW/PYELYjSg/Lc73dY5B7eh48YFVvSKvZ9xMDuhnpG6SfouXa0iL2GlD6IToCj6ye7jF4EuU1Lr3/sAB/mhfnkiDKCq9VNC2Vdvv9GN4dme/MGFi3+eYvKvmU+awTXLyMzeVnGAj6JvD9BVU0wZHL0xy3QrNoAQxHtVn3l0k7vDjzBiqphj+goXxGQzW2j47rtP86jdmT+HebWXbozdbkI8nvQ+V1GXWonxUJDjxDTLiickJF6mD3e4fiAddmo9sbH6vjj6gF0vubGxwsRYhbTx8Blr5Xi1yBwNUdk7MH+x+z5GBUYG5DbaYNw== X-OriginatorOrg: synopsys.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5990.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55a775d8-4462-4e35-9075-08dd197b3a93 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2024 00:32:01.0279 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c33c9f88-1eb7-4099-9700-16013fd9e8aa X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: av009rao1q+P1WS97+WhqmwHR1xqyV9U3s7FsfAZby61AGMaKkxJJD0zSyANY/Y8kyt3tSrgF4o1qVUWGf/M/A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7691 X-Authority-Analysis: v=2.4 cv=d+8PyQjE c=1 sm=1 tr=0 ts=6758dd85 cx=c_pps a=8EbXvwLXkpGsT4ql/pYRAw==:117 a=8EbXvwLXkpGsT4ql/pYRAw==:17 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=8nJEP1OIZ-IA:10 a=RZcAm9yDv7YA:10 a=nEwiWwFL_bsA:10 a=qPHU084jO2kA:10 a=VwQbUJbxAAAA:8 a=jIQo8A4GAAAA:8 a=bVWQr8Ic_oZympSaEz8A:9 a=wPNLvfGTeEIA:10 a=Lf5xNeLK5dgiOs8hzIjU:22 X-Proofpoint-GUID: RigdsN1n_s95C0EDm2KMUEaikPJm8wWU X-Proofpoint-ORIG-GUID: RigdsN1n_s95C0EDm2KMUEaikPJm8wWU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_active_cloned_notspam policy=outbound_active_cloned score=0 mlxlogscore=999 suspectscore=0 spamscore=0 clxscore=1011 adultscore=0 phishscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 mlxscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412110002 Match usb endpoint using fullspeed endpoint descriptor to make sure the wMaxPacketSize for fullspeed descriptors is automatically configured. Fixes: c52661d60f63 ("usb-gadget: Initial merge of target module for UASP + BOT") Cc: stable@vger.kernel.org Signed-off-by: Thinh Nguyen --- drivers/usb/gadget/function/f_tcm.c | 32 +++++++++++++---------------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/drivers/usb/gadget/function/f_tcm.c b/drivers/usb/gadget/function/f_tcm.c index f996878e1aea..b35e0446d467 100644 --- a/drivers/usb/gadget/function/f_tcm.c +++ b/drivers/usb/gadget/function/f_tcm.c @@ -1966,43 +1966,39 @@ static int tcm_bind(struct usb_configuration *c, struct usb_function *f) bot_intf_desc.bInterfaceNumber = iface; uasp_intf_desc.bInterfaceNumber = iface; fu->iface = iface; - ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_bi_desc, - &uasp_bi_ep_comp_desc); + ep = usb_ep_autoconfig(gadget, &uasp_fs_bi_desc); if (!ep) goto ep_fail; fu->ep_in = ep; - ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_bo_desc, - &uasp_bo_ep_comp_desc); + ep = usb_ep_autoconfig(gadget, &uasp_fs_bo_desc); if (!ep) goto ep_fail; fu->ep_out = ep; - ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_status_desc, - &uasp_status_in_ep_comp_desc); + ep = usb_ep_autoconfig(gadget, &uasp_fs_status_desc); if (!ep) goto ep_fail; fu->ep_status = ep; - ep = usb_ep_autoconfig_ss(gadget, &uasp_ss_cmd_desc, - &uasp_cmd_comp_desc); + ep = usb_ep_autoconfig(gadget, &uasp_fs_cmd_desc); if (!ep) goto ep_fail; fu->ep_cmd = ep; /* Assume endpoint addresses are the same for both speeds */ - uasp_bi_desc.bEndpointAddress = uasp_ss_bi_desc.bEndpointAddress; - uasp_bo_desc.bEndpointAddress = uasp_ss_bo_desc.bEndpointAddress; + uasp_bi_desc.bEndpointAddress = uasp_fs_bi_desc.bEndpointAddress; + uasp_bo_desc.bEndpointAddress = uasp_fs_bo_desc.bEndpointAddress; uasp_status_desc.bEndpointAddress = - uasp_ss_status_desc.bEndpointAddress; - uasp_cmd_desc.bEndpointAddress = uasp_ss_cmd_desc.bEndpointAddress; - - uasp_fs_bi_desc.bEndpointAddress = uasp_ss_bi_desc.bEndpointAddress; - uasp_fs_bo_desc.bEndpointAddress = uasp_ss_bo_desc.bEndpointAddress; - uasp_fs_status_desc.bEndpointAddress = - uasp_ss_status_desc.bEndpointAddress; - uasp_fs_cmd_desc.bEndpointAddress = uasp_ss_cmd_desc.bEndpointAddress; + uasp_fs_status_desc.bEndpointAddress; + uasp_cmd_desc.bEndpointAddress = uasp_fs_cmd_desc.bEndpointAddress; + + uasp_ss_bi_desc.bEndpointAddress = uasp_fs_bi_desc.bEndpointAddress; + uasp_ss_bo_desc.bEndpointAddress = uasp_fs_bo_desc.bEndpointAddress; + uasp_ss_status_desc.bEndpointAddress = + uasp_fs_status_desc.bEndpointAddress; + uasp_ss_cmd_desc.bEndpointAddress = uasp_fs_cmd_desc.bEndpointAddress; ret = usb_assign_descriptors(f, uasp_fs_function_desc, uasp_hs_function_desc, uasp_ss_function_desc,