From patchwork Mon Jan 25 13:43:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 370226 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp3992901jam; Mon, 25 Jan 2021 05:27:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2XpSk54b32/AdPkBYi7tdr0Px5CpdgqYpDoKzxWBBTvKw/nSVeQzM5HgZwqy19OosMYTN X-Received: by 2002:a50:f0cc:: with SMTP id a12mr447657edm.219.1611581265847; Mon, 25 Jan 2021 05:27:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611581265; cv=pass; d=google.com; s=arc-20160816; b=XNgRjQoMQxApgwqoY6aMU4yIbRyFZCbn6cs5xDUhOVPqhy31pgZsQ1MoW8HkA3mgNY T4AsDzaEbxQNpKD7bG40wF89uSaegwlJbrSXhQpjgRw8u1qbWRhXbQGgYth3puLpo1CV LwjdRMLOawZ2Ycevcacz9vV+dWQNu/T/oBdUiMAFRsKiqDxOpZ3u7Ce6+EpZY5oKJpav r/mgvvnEQhxO9WHKmAI4lAsvpiMtCKIMokg4E2x2as2ll7Ifia/NOEo8AbKNmaPGolXl 0mlABt6L1JvtVTxoa49ttlzLou3xwvEtiw9+UDwkhmk7zLkXc/vXu7+ohfctagnLvG6z kF3w== 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=I8X2VRqTgGc71Zp4O0E2qz8o3EJCQ2iri0li8A46Lj8=; b=r7GsBe0JuyHV2H45VCRDCjZ9C+J960LD0IrsjBBuFIXBZaLQW0KbN+9ygHy2JFREWk z1eQO39CrE0k5RRblAdv48pvoPQbNIdzSCl1doxkhR4hDNI1WZ8zxMR+YeXvhQEj/pam 3dqSQfRr89+p0yjHXWFZ6yfES64dM/iUZHaTmFWeXhrQNKAoLPIVaPUGgkqlnnYOoVqT jjE4iAzMV8ikQ+wRo9DZFMmFa9NVhGFuWeEEQiEUWuo1XLc5//5RtJrixYZ6Ouxy+/vE ZTbvceQXPKG1WFli3IriP5lpr3IJIjYDSa+tn1T/IqmxIDnSZwSNO+xmOKGx3muUB2G2 4ZfA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gfOUU7wV; 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: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a42si7981215edf.469.2021.01.25.05.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 05:27:45 -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=gfOUU7wV; 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 38EFA82734; Mon, 25 Jan 2021 14:26:40 +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="gfOUU7wV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 55C1D82679; Mon, 25 Jan 2021 14:14:49 +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 EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0625.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::625]) (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 189FF82686 for ; Mon, 25 Jan 2021 14:14:46 +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=Q05BxRofByVYG3Fp0gFFek1/tqHbdnLgQNxCJc/qrROduW5Afy+Xw4ay/heQ0IsMdWOetHeE8JM+oK4hURmoI3iIGQMKItks8uBlv9+DNK+PSI68GQrT4jrgt3zP7MwxsLUnwRe3amwydXUZqxdysV6+VPTZLvKteFiLpblsJaKnla+QbO8oaVC1/Bvymn9zO/GwNs1UIdG/nKSNab9P9yh7VgfFdFN1XEWShUqcFXohL1xaXaL65Q5X/NY2q3AfUdhwg6eL325HvLfjkDaZ7P4WGp5DhNLn2ykhWpvNT4AZtmWs67u5IHAodCZKX5ipLCM4vm2vsndD5sS/TlC7Cg== 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=I8X2VRqTgGc71Zp4O0E2qz8o3EJCQ2iri0li8A46Lj8=; b=WE4vE5K5LEc+r4A3d4rEW8k5GWo8mO1YiSnzgemuaDt7Kmj1+5tUAxgafy1HSVJrROg4pIdsPuwzA72ZzT6zeXK5BLZbAJU2xem5Aqv/gX6FLLkJya0clQme1+pdeQC2Ibecy8nCFGYXn9ObSrGXptvUm2LmiMbfL+M3WO/QB7sVIk5dF2IuC9Dm1CNDjavedt5f/927AcRAcBfxNyglSq7NhEUPxfEZDe3/Bm3vKtkD1CpW6gDVFHoCes7s2yQ2Y7ZLKOTEPsiczl0dywvPsEN2n3j6Csq0RcjpDYq0iQHA8UdWcOY5ulX0vFUnJhkggNkX28NiTdnHy1tVPsCLUw== 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=I8X2VRqTgGc71Zp4O0E2qz8o3EJCQ2iri0li8A46Lj8=; b=gfOUU7wVav/1EIiOhQQ5Yc8zX4OIv+nXpMQJi8SFF4klmFpubeBwDQnFOjY1keH41YsUhV7TLBNmngofmlLZiPQGo0dE8vg7AAqj+AdH8LGQ1Y/p986vsWhP9kNcEqzMO+f5fDEhTP+2/QqUpPj1Xayc1eiHbYdvwZLRvnzEvTA= 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 DB6PR04MB3128.eurprd04.prod.outlook.com (2603:10a6:6:10::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.13; Mon, 25 Jan 2021 13:14:45 +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:44 +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, Peng Fan Subject: [PATCH V2 05/17] usb: gadget: add Kconfig for OS descriptors Date: Mon, 25 Jan 2021 21:43:48 +0800 Message-Id: <20210125134400.780-6-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:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b7719e13-0b61-4690-1f08-08d8c1332e9b X-MS-TrafficTypeDiagnostic: DB6PR04MB3128: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:390; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CJuclLXN9gjiOhv7bt9kKvxgqop7JvWd3d04IklcJgmmbyP/AbnFvu5YskpXH/2l1KBtOmcX33/2RPJgI6ZUYc6UvYn8WTML7rIyZUQVDNfYlsWMZTSa81Gt0mpWGW4vTQZbWY8/RzTd1Ri4GpDnIEnGvL6H9s1tzoVXe829GqO8UsL/eluj7k61LMTk4zYIT7wBiVpahXJ2zw77TTg7B9z33ayQ+yE8+YVJ7gfOiickbp0OKEi3E9d8qb/1Y8kw7/tlZm0kyH+2rfstmupOaAX8EhFociotuJFSZ9kE90M+Vj2qKFo8Ti+Ev2RZdYBoswCIJI3k7hCG9GpRfq8GuTiQJ/Ezg9FbkHQekgD5AQpBVvi28mwFYFI6voMAprUgLbbbJ0HDpDilVEx9ARnYV7D753IxgPQez2TSuOfElHMskqgl2tUByOUztjPbI4HfZBtkh3dsNDJVCs9bCmZxVg== 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)(136003)(39860400002)(376002)(366004)(396003)(6506007)(4744005)(1076003)(26005)(316002)(6512007)(186003)(4326008)(478600001)(966005)(8936002)(8676002)(86362001)(6486002)(2906002)(36756003)(5660300002)(9686003)(66556008)(2616005)(66476007)(16526019)(956004)(66946007)(52116002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: rYNiOdi28um3jkOCCgycHZI29/nB+AxjedtDAthdDXVAQ9VHhtqrBkpUq2Gw5TAgt8MMMF3S9QroZLs5KGAXyW8qFIWHYP9ti+4MOO5yWU7kznmUJBtuqLy233wyZQgAlhhlZt1H9vbIuFkHeEVHwFZTiaRdvXx2J1xc6e8NZ1h3bwcOVzzCTqv4E5bNiWr0qaxJckIFYNgFtmkJkceYFG4hLKSG38n2R5lW70xEIrizQ7L+7QibpFFGHWKVwoky3yAB8p+6KEwZerKlu0zcUvfadkMr6quujeq0fjjpNgFHM6yzAcktwqnGVK6TRLXIjfb/2VHB85nF6+jZvPt9ePkqQpTh1xahS0X3fMjTfqS48dFPB4zrrEoY+8tth9bldWHIIJlObZcgqKcr3PEtTOUbeLNanxgg4TOZQA8fWeYseBXbihYePde9Ce7MEmapQqUNSkXezgxAbRWjwpGTsW/Td9+42A19unobSqtOLEf0w/4F+ObSQsxkLxoA++ZYpGY8Ryu4ZGTbL38lQ9HkIEIRPajo/pWmOAoAT1SRrFsPaSx/WEiQ7rM2S25RtX7rBD1GzzVoqNEBeyB7/xpwRXLI7qrKgh3MejPLfyflmdcjOn1AnuVqRn9GIcUP/JANuuZYXHserGN2kXhGbptqg6qd/Tfm62ujGJ8pgDLQmFHBZXavkA+vawXUbftzQdZ8R/EejRiawcr+LpL6cLtqPQkdh46xR3Wc85AIcfNGPeZgwOIMX/tnNEQEtSd0C5EwZ0JRCSVntSM/dOiqEL44xpLcxf2fUK09HxD+bEeBD47zGGXLikup5EBA/mGYi2rEnMNYSxIrfoQcoMepPFv5K3TSzQa2teWrjm6S7HM0CD+0RjZ8rW44K/h6iIpa3haj/51oeNckqtFF3eHnyt/L7BnanUI/WUtw6tbtIhJ3RR/Hp2/KRw+LH/t3sB03udHVhrxEmWz4HwbKGHBpXsgnzpga69Vgv+Lxd3pHN/kbKYilCD1FmarrQk648yWaTihJ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7719e13-0b61-4690-1f08-08d8c1332e9b 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:44.8893 (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: 5Q+Iucrju0JgbH/Oga4OY7nEBzG+vD94HN6T9z8NPhBM7Mxk/wLHjOk2X5u5CnOcyPkYvPZ2hBEwa7mfmWpomw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3128 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: Peng Fan Add Kconfig for OS descriptors Signed-off-by: Peng Fan --- drivers/usb/gadget/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.28.0 diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 7c0df5c264..4a3b22e6de 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -98,6 +98,15 @@ config USB_GADGET_DWC2_OTG_PHY_BUS_WIDTH_8 endif # USB_GADGET_DWC2_OTG +config USB_GADGET_OS_DESCRIPTORS + bool "USB OS Feature Descriptors support" + help + This is a porting patch from linux kernel: 37a3a533429e + ("usb: gadget: OS Feature Descriptors support"), the original commit + log see below: + There is a custom (non-USB IF) extension to the USB standard: + http://msdn.microsoft.com/library/windows/hardware/gg463182 + config CI_UDC bool "ChipIdea device controller" select USB_GADGET_DUALSPEED