Message ID | 20200916132537.8313-17-peng.fan@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp445580ilg; Wed, 16 Sep 2020 06:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyrqY24b2R5oWTVr6K0sf5Yc0V1HJV7iouDTqhheQBncBCvOFw9QQ5tfuxxMDa9L1VlIiT X-Received: by 2002:a17:906:1690:: with SMTP id s16mr24997478ejd.122.1600261408841; Wed, 16 Sep 2020 06:03:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600261408; cv=pass; d=google.com; s=arc-20160816; b=Ovbib1Xkxiy4USD+IkvnjlCgLxOjvbk1FaOF1Q9w345U6gKpPvTssdvpZ0VQ1JMKds WfbOOU29ViitK44C27AP6vnZOObbU7+xW2SkaC/zXbYFseXG9tICOcNZcGk9c99h3ZZL 1eJdL/fMkRxM2k+D0WhOJMrMpnmZvkvRoTuEQw9QIjhgz6ZgDRApquN6CH5+lW7elOFE eROR3aJLweksrcUP+Yo11wiahMU42p5kLeHpJORh7EVAGGkTzMyTSup1xrW2tV76wb7D ZCClP6rTXyskyp6QoC9kwEpRcpnzjHy3qTQpV5ixMCUYCXeKWY7CZ9LSoS+PyQVmEqyu 8yag== 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=TjOKymEQyGAHq1OhZE9tT3EvckpU62HT9F0LFxHcQzM=; b=S0cf9lVHUcaHiQAMfToJ2E78OvRFkGCI8oqnXHigONhWe2e+fQuFovCxUzscfU8QAU qpdD2CZd126dIHmMPRGxJ4ucynYp7mc/OyzzNehpbLn+qPLDA+5CFyc26DkQ7vL9Uubv qDfa1qxnB4stbIq9haW+d2coFbQyBJITscIdQT9rMQCHszH6DZnyt/aTNoy+OyG3DzTY dZrVKjAGP2azZx3+4BjulrDSxsLmTrAKD79/wq7D4L9dVnMHFpFV6XAg/wY8hUTKICSg udSBWqxhl757RK6IKPsEUaQ0MH8fUwSUfF0Pr7YLPOn7/pau8rA2z2f66xxg8g4gGMv1 YhlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=EZRKQHgZ; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id p22si11717177edq.579.2020.09.16.06.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 06:03:28 -0700 (PDT) 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=EZRKQHgZ; 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 64F9E823B5; Wed, 16 Sep 2020 15:00:44 +0200 (CEST) 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="EZRKQHgZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 03D558239F; Wed, 16 Sep 2020 15:00:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0609.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::609]) (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 5E72E82388 for <u-boot@lists.denx.de>; Wed, 16 Sep 2020 15:00:27 +0200 (CEST) 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=JcjzLi22x4khawD3AifpipPYraPunaAEkzJEaem2rLnpbtq0OPKilzRLSzspVkFhLCer3OcrmD1hFH8A6mZlln3A7cYqMjHk31IFxnw2tuD3fLUlXFrSamx4DGy3Cmrtp8bGDcnr1eg4yOO7gSVFS9MF5TmwIyT1Bksxmr5Q7nA4J+xyMI4wKLMf9oF9ojNfkW+jHgOYu/2TARMN2RtijR0Oi7rBE27TGsCiA1ZfoiHc0YmmdDLRW2XURpwqmngUiczosF54Sp1CQi05NjjkqcAK6+vRRG5e0ZgHjTfC512naj4gmaeacc85pSXti3t5NFwReLUE0zDOiyOnSdgktg== 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=TjOKymEQyGAHq1OhZE9tT3EvckpU62HT9F0LFxHcQzM=; b=Pm0TBktudRW3yhn9j8TOcs9mk5y+qRS0QeZ44g0Q4RBwUeay6DX99jZXOc13jMhkjag2NRHDsliGVaEnNueusSdZBlSQX22lG8hF9GxN8ZpbWAD9SMDeRxRWCClqJB1t9jC7g6O/HSyuOhVpICsVQ+vLFb5AtY/FpqLHN6hDW8upgVLMfpSV75XZwxNIOjYNYW9KZDL0UGeXdgcf/Y9zG7FVnJRGY6ZdoPIuIrCTT+GqWHr+6zjBwMyJUs0g3r7cNauvvIP/gJFvR/54K04gsfBCHTQEjeEOM7zI8t5H+0vTcQOFK2bd2kQHAPrPw8fZetkE1rXlXL8beSO2FKsD5w== 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=TjOKymEQyGAHq1OhZE9tT3EvckpU62HT9F0LFxHcQzM=; b=EZRKQHgZtlbyO0HgQFgD/k+jPIQihxO9vAXbsMhRVvDritCndx5Y0ysUIv+NIVgd+UYCsE6IOhZFcbJojON6Sgu1ln3+1MxHhK8bELdmhuhcxcFvgj4/j9WDpCnhhDzze7LGLsbwq287WPTcV6FJWQcrkg4+nzzYpr4DP3Tvs60= 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 DB6PR0401MB2373.eurprd04.prod.outlook.com (2603:10a6:4:4b::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.18; Wed, 16 Sep 2020 13:00:26 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 13:00:26 +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 <jun.li@nxp.com>, Peter Chen <peter.chen@nxp.com>, Peng Fan <peng.fan@nxp.com> Subject: [PATCH 16/16] usb: gaget: ci: set ep's desc when enable ep Date: Wed, 16 Sep 2020 21:25:37 +0800 Message-Id: <20200916132537.8313-17-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916132537.8313-1-peng.fan@nxp.com> References: <20200916132537.8313-1-peng.fan@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0131.apcprd03.prod.outlook.com (2603:1096:4:91::35) 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 SG2PR03CA0131.apcprd03.prod.outlook.com (2603:1096:4:91::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.5 via Frontend Transport; Wed, 16 Sep 2020 13:00:23 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 92b54660-4e44-419a-5689-08d85a407ab1 X-MS-TrafficTypeDiagnostic: DB6PR0401MB2373: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB6PR0401MB2373169CB2CF65B77D55B85A88210@DB6PR0401MB2373.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5kU3GP2B8RoGNFXaqsxEG20sQwz94O/R1VGzZYzyR8dIG/1ciMLmBLmUrQfm3PZNR24LLwlxQ/xKf1lBabPz8CQU14dMAefoKAjaebcxT55O8xHCJHGsopJs6+3zYr+qgeUrQGhYRAXAoPQQ1G9fB1PvSQjz4Hf4ry5R2RWbQH1f4SeO6a3neZjyKMCZRC3KJsE001wPRUDD2PLYtMIG+YH+Vjsp3LU5mB5COddkfSnnAxN4i3l1K45jt6LTcewoZOl0Nd3uFANIrLIUefaSmBQ6bQkF9gVkxph4IkpEZGgvvleyf8c4ehubB7AJa0ky/e1FV0+rszG7Clr5KbUbRg== 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)(346002)(366004)(376002)(136003)(39860400002)(396003)(54906003)(6666004)(9686003)(4744005)(1076003)(6512007)(5660300002)(478600001)(52116002)(36756003)(6506007)(66946007)(26005)(6486002)(16526019)(186003)(956004)(316002)(66556008)(66476007)(2616005)(86362001)(8936002)(2906002)(4326008)(8676002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: piI2Eb9PuK214RPA/v1DDmUfP0+9yyIzc2xuWnfP19ntsG/dEQqe42Uf9AiwUem5P4RLvXzRWMt+sj5SAdtnkMu2/amSY/F6TylRkaaUBXIt1jBWZH2iSwUH488mFi9HyZfLguH+IMBfcoiLSAxgJ3zOYQ+IWD6G0tTQutvqU+tNIObpWptOpa3paYHcAxjFDeIB7ZLlAMp+pebaKPDfihKlrviI5JR1vtNKtV2AQMIbc2uQZZEd2NVVyhQpUHA0yldO9jtwZZiuNcgN0IOAEdwjC66PXcI51zP5XWL/RvD4FzY5/6N3pkYZpw8A+Iw32OEkkNSEAbFrfu9cDzpozCrnBnvXyjXvza30rGhBpf+2LBI/zwjhUm7+NeFFEytCeogLiBXLmh8wkvFbX4x3PNSHrFNAczV2V0Ws9+V+WDSgQYxBZUn/E308IgOdGwoE0wOgc3CGMFAAVwjnqxq97J0Z4YIpA2B80JzfxeRRxFa8BUOO+x9KfLRcdkzOGT8b7blmhWp43AWltdOF5spjRIOxRiOBd1vlkRi9GVffDOnHUwKiON4I+3NdQyZYR0u0PHCe5/DkRCpfL9B18G5tgDFBtB6Hptn8Cc6wWnBElY4M3sUBzrYnwOEBF1HED9O4/UVC9tE+HVW0ml5Nc3dhfw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92b54660-4e44-419a-5689-08d85a407ab1 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 13:00:26.0622 (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: 2jIjw6yCAcm3MkuEBOrfmXAmiQBigy1xx3baKcRh5OZEDkLdtCFTK+Gc5BjyJqKnPbCZ8Vhir3GBC0TpfOgUEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2373 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
usb: gadget: update
|
expand
|
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index b64e4bb605..226a9e6d67 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -336,6 +336,7 @@ static int ci_ep_enable(struct usb_ep *ep, num = desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; in = (desc->bEndpointAddress & USB_DIR_IN) != 0; ci_ep->desc = desc; + ep->desc = desc; if (num) { int max = get_unaligned_le16(&desc->wMaxPacketSize); @@ -358,6 +359,7 @@ static int ci_ep_disable(struct usb_ep *ep) struct ci_ep *ci_ep = container_of(ep, struct ci_ep, ep); ci_ep->desc = NULL; + ep->desc = NULL; return 0; }