From patchwork Mon Jan 25 13:43:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 370223 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp3992326jam; Mon, 25 Jan 2021 05:27:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0m29fu3Wch7PhXE0PjVH3vZOPJYLNzI0Qb6cE7Csb2h8/70dGmGT0WnmFmxXIoyUAtr2L X-Received: by 2002:a17:906:ca52:: with SMTP id jx18mr364468ejb.385.1611581224321; Mon, 25 Jan 2021 05:27:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611581224; cv=pass; d=google.com; s=arc-20160816; b=Q3xdLP/5hfnAjlLFJjCO6wArYhYIOi3WcWTY0JFCOLp1bucgEz9cghi8U9nez7EZKC d2xRdI2WmesGvAB7X6IeEbqLmvKEqQaTGCx4XGkKLChB2MIVgU3fcZr+v02igxKyAFla TcWgTLm9AVUtZoz6Vgn9I6vn57rez/UylXWMl8SRKAkndUqAUU9kreiiNnl9LXhOSGNO rBk/bX4s2cKvCMKFZGx3ae0fZQV9IeNTu45Bt7sOzp8574CiHoh2P9Koj6PHrGInlhCa 3nUJQpxbtYHLbckWHm+U5n/PrP7nQbpGRu7MA75rScTePODEtDb8DWcolr+Q6HmQoGqE sPXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=g+O4Z6/061KpMVfVlB+EQAM81GFEf6hKde88htQBKCM=; b=vhpKjxyzAf8PAEuyeGlT+S2sg2VLMFcRu3nASZ1y9bC3KjtK3viCexkSWD3N31VFMN tUHqepF6EpkpLaCcJ2EjD9RuGr0FvCG/Y8+DHQjHRnzlijylY/D3NkM5D8o0tlRRARoQ GcuMCxQOGtXlL60DCHsomCvNCTIEKw82L/bcB/bMcjUGN4/NpDn0SeXQLuEV+/wSy7wO Biw14GQE6Wrz30ruKGpwvhyP8rcTrDLLhLhzXxlR12przdD+GwtIg6m+CPYP3BVMKxE2 SZeLpSHzcfcR5z6hria/g6ECpzPHW8HAZbAawBQyThkOq9z50jdLxeMrugce3rEtnX2x 8cog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=og2beh5t; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id kw25si5199258ejc.150.2021.01.25.05.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 05:27:04 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=og2beh5t; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 82AFB826C8; Mon, 25 Jan 2021 14:26:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="og2beh5t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1573682679; Mon, 25 Jan 2021 14:14:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on060f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::60f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 74FD5826B1 for ; Mon, 25 Jan 2021 14:14:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LArCa7ejmUrabYNaUs/AJLZ7IIx4aZHS7iC61DdI1Rw4L2VpT9tLR7yb/OEYQi+g3HJMeFYOI9q3ZQHSbKncL0zl+Eah9NZD0DxoMv3+lOj9pLncq5fSazYSKiS+BylBKSZReEdDxXmaAQ7SmfKFKYDk9f70V1UQeh46Ttlc79JTnaDA+nVmdmg9z1YWD6suTkNxIGuhnzLbHYWzY3Z5O8QiZdY1GxIM4Q1Cd/qoOC9Itth8N1cP4a4J1IWZSLgYKqWW5pBL7NoxLvekWN4U/bD5sUifhHBuWg+exr4UlvEcRbxBjBidZZgYBltE2e7zY4Ijc8GU2LGGyaHInAzrSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g+O4Z6/061KpMVfVlB+EQAM81GFEf6hKde88htQBKCM=; b=bJ/k6P1+2gpcUWufkIks6rboQdW7vf+/7aJrElt0L12yuPb++nYWVQo9XnP+AiLdN6CnZbLqOWNPN3OtocXpBsL+g9vzXU2K12VaVTvv6rEvNRiah2EP52WEp91ymcQM55s+72qRk0EYr6LBbCQ0Fd8qSMRsHI3G/m7m878z8QJ9AnEoTOGV4r9hikdX6wAatJK/LaJjHi3QVHk+YR1JkTusK1IklhE1yIXpZpJ8YoGwvZNDb9VKl1Hw3xJu/1rby0ZWD2z8/gTpfb2VrA1vZGVQr2n/E+zs/biia1jpln33Shh3L8MkcVAKHp/oK6rIwPi7scc5N/0o1H4bYn84fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g+O4Z6/061KpMVfVlB+EQAM81GFEf6hKde88htQBKCM=; b=og2beh5tc+8Qes20ikHCg+p3cvZNXx6r0lusee/2VCCngTfgOVDBr6O0WmnbMoSSoBuCwJn50VeD1TkVLu/mlT+wvkiS8XBpeT2aUsIdauen26+flhEjy6BnlHsSq/1LX4MedNmeoQZDTt0uvdZC5DmKURQAQ+nmtVgdh9UGZvw= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBBPR04MB7930.eurprd04.prod.outlook.com (2603:10a6:10:1ea::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.17; Mon, 25 Jan 2021 13:14:35 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3784.019; Mon, 25 Jan 2021 13:14:35 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, lukma@denx.de, marex@denx.de Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Li Jun , Peng Fan Subject: [PATCH V2 02/17] usb: gadget: don't change ep name for dwc3 while ep autoconfig Date: Mon, 25 Jan 2021 21:43:45 +0800 Message-Id: <20210125134400.780-3-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210125134400.780-1-peng.fan@nxp.com> References: <20210125134400.780-1-peng.fan@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR03CA0117.apcprd03.prod.outlook.com (2603:1096:4:91::21) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR03CA0117.apcprd03.prod.outlook.com (2603:1096:4:91::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.6 via Frontend Transport; Mon, 25 Jan 2021 13:14:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c3fbcc0e-3830-4f64-8089-08d8c133294a X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZhpkY8tt1j1MaN6DvYulLE6OXh426KoosaO4Ec9+xXrIOMhX+a1uCM442G4Osqp3cN8Hy93694hTy0ugKxg+YNtT82/FBestsgFxso+mAO3IW1wWeGlGD2lUunW8qt/nF7RpQ5XmbtSGp1XhkOJruRPEx07dB1T1SwoqmFESkGSFLJk17rXQQOOKuzwvh2D0xGc87gPuM4BKOe/WVFbHGFKfYFlx4X9FA5FRSUUoYfUwaRCWYrGIB8KRqHzIpHVKCWHW10jfnKr/FG6l7YiXpYukkCrG4TnLpcZro/FH1bewqICzqYpR63vQEvZI6OAYRScsEYAGiZZB1ENmNLeb2CdUBQr5Hf4NIOFW/6jPBXNQWuNoSn87SvJgE7UGH9lVB/DJeBhPU8YFTCCu7rTv3g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(346002)(39860400002)(376002)(136003)(2906002)(66476007)(66556008)(8936002)(186003)(4326008)(16526019)(8676002)(4744005)(478600001)(66946007)(5660300002)(6666004)(9686003)(2616005)(36756003)(54906003)(1076003)(956004)(6512007)(6486002)(6506007)(86362001)(316002)(52116002)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1P1KwMOdRloF/+ohgmBIbAqiEBoAVc/ZdIIC6UttfUKhC6WFbADvCxT2jigjpUWQX68kWtrV+tLkWLOAsbIDur4/3MOYuzSE7h4u0s0uaWE+uzihncreKPG4eXHBoT/tafboJumRAePuPGg+9pkMVXm0FxmwTUTPUUwbiEpxEoCKchba/RslwmZ94O6M70WhDLAiqqGUrc68G0Kh6lPHiuyMc2/6UDzRXgsK0jvlzhc41PvK1xgVwSrv5LsbwOsxPCibOuq7fqS2fti1lKpwQLNCzzt1epOqT+nYBQ/jD4zsxCd0AYa3352RTGgCJa2lth7KD+7JU3znKUjkb4eSev2FOwdtqghwbIqauWkw63gI9UZx0chVql8P/heUedO+4eyaLli+ZuU1bvfdfddoSBA8+zaHEEsGPb6HU7aF+cZeHHzRGKy6i5d5U3zks8DUtYD5BairStAwDZYUKy8cnoejg8S2K4BgDbk6N/PJtCce33yqEjeFQcieWaxzwJGz+a1Hwb8GNmRYNIEYBVceoZWqEAG5Zem5DHTefrE3wHSmXckfOIOy72/f89UbMKYCis/4LNAgtwaY6FnxG/TyYjSrvUc7d9tRSa3pD3sxIsaKmUFaxAmty8tE0lJr/Psb7Jht9w6V4WhSR/sxiOzJtBLOQToTHtuVi58angRF8vYIknM/9bHq7wDMIXr9iNxegTS8u/Rboftgh58V2gBE6FnEkkcq00FUwSVzxrsv/HTN1xivX0XG61hHGVCL97QEQT444GqH5+bv+sHhzB5ObED3anIlK/JE2wXNkyQpaeSvjK6Am18YlaK00T+c5Sr3H8MWP+0V6x7uYU5cFSU0vpEQSnMBq52m5bjMJwavFXeoetUXSRiKibuEvb8KJ9kly2JLivWO4u/YrClvU7O+GCXD9hlDXtrJiElfy0yQPa2KxZatddUzsDy4zjG++Q/mTuT8BFgUX8+hY0X03eyqCYkiFW3kR9sDPlky2/SYi9P6rg/IQGMq1gCyrdpbaph1 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3fbcc0e-3830-4f64-8089-08d8c133294a X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2021 13:14:35.7424 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /n8GodbjODipRUT5IkNrvePTCG7icEOvMRXKGjPC2Ktx6k5r9PObfU8GeE0uxjxZTwCW/BHrbBdMMqxaJr9qHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7930 X-Mailman-Approved-At: Mon, 25 Jan 2021 14:26:22 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean From: Li Jun As the SDP protocol use the predefined ep num for communication, we can't change its name hence reset its ep num while do ep autoconfig, this is only apply for SPL. Signed-off-by: Li Jun Signed-off-by: Peng Fan --- drivers/usb/gadget/epautoconf.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.28.0 diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index 3f8842976d..7da334f5d3 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c @@ -262,6 +262,7 @@ struct usb_ep *usb_ep_autoconfig( ep = find_ep(gadget, "ep1-bulk"); if (ep && ep_matches(gadget, ep, desc)) return ep; +#ifndef CONFIG_SPL_BUILD } else if (gadget_is_dwc3(gadget)) { const char *name = NULL; /* @@ -284,6 +285,7 @@ struct usb_ep *usb_ep_autoconfig( ep = find_ep(gadget, name); if (ep && ep_matches(gadget, ep, desc)) return ep; +#endif } if (gadget->ops->match_ep)