Message ID | 20210125134400.780-18-peng.fan@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp3994783jam; Mon, 25 Jan 2021 05:29:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeapff8OX6PC5CsiLyyL32dt51bVd7aFMLPDMmWE17o7dHANEK3hFaI22VqjhXz7e6TuFI X-Received: by 2002:a05:6402:26c9:: with SMTP id x9mr436190edd.365.1611581395732; Mon, 25 Jan 2021 05:29:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611581395; cv=pass; d=google.com; s=arc-20160816; b=QrzGKEisZNlrfcHlUxzfu7KO+qo+crzdEGW/M1Qn59GUS5eYsWGCPYbO6un32wITDE rBwNZKWDVLse/i5COVLk5MuiDIrBKhtSJLCDeqwcviwkaK0KATYb8lj0/ylls9hkX+vY mgHo4wVXbGlYiKXlCYvEwxHEUvl1FkyNwDt3ggGHw41VXMG0/L6CuHtocQCgTbDflJjk YQiQopty+F8WTALWalRgmETLOCPHTyhW5+5z7WzB+TsDWHULQdYOXqUgRZ37OfeF2XmJ iGLJDiKgOICEG8n6zskitKbhYcUXi5/ltDLmrhNyRnnHHsKFFSvLxXHZ+HHuATQTBj+s Y0NQ== 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=oD3wTfQh3Ja0BDd+iFixJpfCkqXszLcCIH4nsmf1aacFsJSjPV/mirPJ1uOnyJQIuh G5i4HH+XPGajueqLT5zEtxxNXm67ZsZanjvx+/TW5X64+nOyLpPJrzeV1TIlfo7Xhe9Z LWylyqFXCDqUZbH6DeN+N+U64YgX+u9MAnHX4nBskt7Wpb0a2a5ZR8TbNLf0JsJFZ2JO 9U+VMHaIZQH7Mr2CK0R56U9otScK0ssK9kBGdNo62aHAkgQzqZC0gRJQ8Vhp6WeqgZMS 5UHTJlhtrFpBBNIN+U8tKk06TGC973UuxQJAXN0UjuXah6q2dpkZpSV0s2kuVaq+XoWK PJzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Gs+VxDlO; 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 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id y11si7553093edo.40.2021.01.25.05.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 05:29:55 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Gs+VxDlO; 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 85.214.62.61 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 E4A37827E2; Mon, 25 Jan 2021 14:27:16 +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="Gs+VxDlO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 05DAA82679; Mon, 25 Jan 2021 14:15:32 +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-ve1eur02on0629.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::629]) (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 4145E826B1 for <u-boot@lists.denx.de>; Mon, 25 Jan 2021 14:15:29 +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=bYzm3wR0+rzfClZvecV9MjN1UUIkOwbnVCiX/daIZoqJgoxJ/XQ/4Gtl2i5Ip0kQIyXcNEOa27DrwZq2/bcPU8BwVKgZgq6TnQohNlOOasmLEXtayI7F2yovKOJW2jyvtxoz7K1pUNiBppsKnl3Y4BmmoYMKuGCLIrCZgjGI83gc+YVfSbkLIUvjflhavzADeguPPP5J7HI2lhqfRJzAS6gR6ETW1/C1+wwzHDA64EK2PMXsnxz/N1kRIGmlIV3S4Z0Ebro9Ddk6A1PimxIkt8Q7SH9m9ErVCcFXpIw8nrFdG8Y+JBZt+/wUeIMn/ls/PPgjldSpzLxST36SeG+NuQ== 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=bJLm9qvI7fgplnKLIr8grXqgkUnB8do3mRllmHnb6FSDw5wXiDcSo8mrogpiuv+DoLntba1s1ldGde8sOIP3mToo3zT6keko1zVdAzO1tNz3kj2ou4uGoLwpfF1LbnGuqfRHIAHtRKQY1BcnwLL5BHP5tWmYUIVbH2lUoTqSTLIyq+y5e+ahD2nz9lKS5yDKJ78YbyBOTv2A5wNA6Hi49Kkia+cVHxMOBYGP5WQbiuO0GvkF5CzV7P/kZJ78QJd82pOYvg9R5/T/YFd5t80FvKQgxftTIF65sEywI1w4VHTOlpaWeQkCj2b6Pdozt3qzXkSxckJ6hHrm0TwtaPux4A== 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=Gs+VxDlOCVM4y/OJT/SlOPFtmhthZEXIPKn0ByMYm6ESCzDe+Nbf7Pv+TqD3MBZZJmG5wVMdnGgXauoziNm9E1AOXV1TBF4ViQgqated+xEaLC4xxA7sLD/nieDK6D2ZjIExcFpB7dwbcVwWdlCten1kWycLdOno5Nuaan9Fzzc= 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:15:28 +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:15:28 +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 V2 17/17] usb: gaget: ci: set ep's desc when enable ep Date: Mon, 25 Jan 2021 21:44:00 +0800 Message-Id: <20210125134400.780-18-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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:15:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 41eeeedb-bc71-409e-ca0c-08d8c1334879 X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBBPR04MB7930EC5073F924192A7088FF88BD0@DBBPR04MB7930.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: XSOSwOR0vaN8uLrCZiz7xbTzl7R/f7058I2ulxHfTnwgptmXfg+TA3HPl1RvVomZkdzGC+YYarRCZu1kxGTY1t3I1yTnxX2W9PvmZ94WrHb2yPY9N+Fy8rzDDiGVhJHpFZlWBZviZ0+jWgP8asTKJdeA4uYFH6dXf8wpCpbhs5Uuv6KHuYulrp+x8clF8rTU+tR+fli4Fzr+YWhw90ea3JHfIKKonxX7JM+45V+EOTamqTHPJUQNOAYWVwL9pN4lyCwV7u/lc7jSeHauwd8/CzgtLgWnFeCrZI0ZQD52YWBYn2hVnDgPv/4N/fzorZgxw4sP/nUqXxEbAT3Hh55n5fdA+wMsWr37pOAr2qJ+9DMzLQPVBshsyOE+gHEOGjffxyYtILIIKbetBQha2AijcQ== 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: t4375elkUYcIiu+eI+l6q4uiBc4MqLH8pU+qp5SRwo/RYWj3HRjbMuVDgz1bIYRD1BNDZZOj3RJPn6rDQRK/m71lH6/O6JWH1+t3sX7IVbyIJ++lCQK1jrPDLk+T3AAdltQYJskYzk3ivZYydf+ueBRzOHSnXU8KB5G07bGHCr5Yei+yROlRhp+HCz258QnVLxvHdfAkgtTBnvhPf31/Oc3gJTMWxaULcscDq8zu7saaAIwtgt5qesqdBt6HQ/Rl5f4q4BnSrIYjg9WjaHilRVb9VVJk2QXedU3QSNKSNkrZXiMUhlA/HpdrhglxHSu71mJc4pnf+xzKATdxx2JjrUpMpzjKmExFKb5qarCZ4MrGb9anMIk7bsJ3DTVXsshy76F0zNotJwd3sfSUq22HZFgUJXf5QRcgY5dNpYbkU2GJFXNdfT0OK10Kr14H+SD5bLXjCQPe1uMilSzb4tmNX5pooCAJsTxsobo/GtNL06bWP9ntUQLIBu3R11qrLj97SiB+KqwOkCrXoraomszi3Hw983sQGj6QwC9pPoVFTj1TEHDJPi12D1gQp5XUsDI/yX6NKO/N5kzA9okdKAzdwWT8ICnsw0Di7i1qhw3AMR6zbd2vEJSUOYAHXjNpLAtj+ndIRJCr9MjThCayVhYurBB8DW/Qko3FybcVsQ9JU3Q8m2tXSLYNGPVAesk+GuAVPAEbkYVzMitvwiYms/lLP5Lb0SSy4fWkeqLPDYGGtjdhboTXnDOogtYxSpOGKN7fEAGsNOqAd+jSxkJWe5xXaR6IJIfJY3fv2Dca7N+lQIcW7Y5AZk8HzcukP3JgI9v1BDWU7qEqpB255umFKvgUgH/cC6auCWWXJMNoxliDtknMptpKXjIcdNStQiV5NyAZGRLJZCrZ5ko1F3Z06GGNc39CPqmrNlMJPj3mWEoedL0lsMJrZIEVVG2bYWH8/YonvXMKlbpWsws2V4H/DkjA8eSf9aXGQURXaXheFbQ+ydR0GJ3HjhyYI+zeeEyBmUEb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41eeeedb-bc71-409e-ca0c-08d8c1334879 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:15:28.0127 (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: kIHhQLKj0Q+fiRdywiOzBKZ/pW6Mxgi71m4bjaYUdF+uIzDCHiZtrNsvz46CtSw2wISc/aQg4NHEAJ/Gqh46yQ== 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 <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; }