From patchwork Mon Jan 25 13:43:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 370221 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp3991962jam; Mon, 25 Jan 2021 05:26:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxk1FB33yCqTJQxTHKnoY2OKcrQvmk5u26XKRBX5m5Y3ixJDd3px9wXJs5SaxcxVtjlpBUt X-Received: by 2002:a17:906:4b44:: with SMTP id j4mr354204ejv.23.1611581196301; Mon, 25 Jan 2021 05:26:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611581196; cv=pass; d=google.com; s=arc-20160816; b=hSM+ve7IO4ascTvnE9OHKU+2o7DWeaNW5iRwr9Btyxir9j1KAf7jHmHzcYg9o9WNRN Mm/yTnsotHLya5gObJ7wbG0NQCcRK4+rcRa7/2CIPu8OQrSLtzDgzODMRpQAMf4cfhlC s6pMrppZC8Byl+sc+Tnw9HoacZXCOvaH+R6k7x+98vXaJUwYxu91f8Scu7JTyT3nE5lD vO80tsAfx47qAzgsSih1oiCm0OZbzsQjom7PIVfe6loepBWUewKfkGo4WHI97kn3gsNi MZuOBOKANNpRKyMXqupCEAnNP14JlVQgzn7qMvt5yA/9aWiPoCvy6NuwU+DFvsqDpjey EukA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=ylorSU58ImIPr4ebTh2n5iSwYyd286oMiL/6bkLscE8=; b=IeY2ZlbuIkJ5HnGdrlK3p9og2jNjv4AIjbnFUQKmXY/4Yx4UwwLp7vpA/eWuASwGdg a0n54je3v8H3hW6OthShOlDl/X4vEdtf0n9ORQmxVLKNJtNSveXw5kJJdxpELBpOu/P2 v3/1IFWJn4i5+omoA1yzlXXGb2j3ed1uAfld4TSnL07tz18tOnewBKRmzeZ2aTgOpy8m QeRQw1x6AAe2P0YFINuP29EQGGmHv2FS8NBD2/7aAag9J5EY91uHuxUjPfeB6jES5bAZ 7/BNHQ/qvpvV9Dbp0IpjxGQEsLO9cz/7wDSZwqHIzWfBeifKzuztBdMe588kH0zaHQ1D 27Uw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=PUBEJoKd; 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 x19si6950694edd.134.2021.01.25.05.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 05:26:36 -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=PUBEJoKd; 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 43E8C826DA; Mon, 25 Jan 2021 14:26:26 +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="PUBEJoKd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 909E5826C7; Mon, 25 Jan 2021 14:14:33 +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-ve1eur02on062c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::62c]) (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 89A4982642 for ; Mon, 25 Jan 2021 14:14:30 +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=E+xTJy3fSUySyru5O0A+R9qCKAAni0uty87K7VwHfIbokx5pUrrZ83nGALqc/YsLGknKehOLmCqxxieQsfHPDWKl/7Vkh3v+XbaN+IFXkrXu0l4DNYGwJvXBx82CjAU96dV/r+ekfLlHnaSAP/NxE8JXxI9BNP6p6prJaJOkMSvnQpCE+3lrpinca22G7fGpHtIKp0BPuQ3QdCQ0v2SZ0A6o7jjVwi6knqHfg70JFkE07Ds/Pqxmkft6LEyCZ7x9ReoU/OjAOcLEl+6eCeLBiciQyqfGfChun6oxxYGY4ovGhikenIWLOEcyXraGDBZlF1Ah/1jfwNKKyrcgp2kOWw== 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=ylorSU58ImIPr4ebTh2n5iSwYyd286oMiL/6bkLscE8=; b=jT6wPyYl+OTie/a2yldV5zbwLVQNOjpV41zTOQHzBkfdu2pKWc+YDDeH/P5DIJftVd7Ls8LX8AYo+WU4XhSHIGeujosQIWyr0QrHE3HevAFUSH5Ijc315a5SBseV1OWhCL8OE9fRHhY6C/yQdkggZvkTXEjXRr1Et+r5WxWK32lh/GtxctjshdQR/SdRQVqipGrFnw9Wv7tRKWiC2HIkow6xL4jV2+SIvWDZf8dzlaPa0xTk+t3xYRzxWjxPtNkUH5V/12fS3/dagdyTw+DdvJfr0sBnJ3K83oaAWHB3pWIhn3dxkgJAHSKcRq++ZX6QORZ4VH1D3zeK0x02szM21Q== 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=ylorSU58ImIPr4ebTh2n5iSwYyd286oMiL/6bkLscE8=; b=PUBEJoKd1y9nupAQXa1mQKzen90zuauT3MP6Y0k+5ZQvlr2Gt56GbLY6zcL0eJp0XDjpcDy7G84pGZJveayyfdLvQ5a4yIxbFZ4r8Os+bmw2++HoaTeos+UtIUT5stGJEnKAjjWO6nqgv09JLKJPUfbND8XYGBfC62x2FISwmfE= 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:29 +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:29 +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 00/17] usb: gadget: update Date: Mon, 25 Jan 2021 21:43:43 +0800 Message-Id: <20210125134400.780-1-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 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:27 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7d34abe8-c622-45a2-7288-08d8c133258d X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:372; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hET/J5EHO5XFAsLa062xZ304Azf/jXvauB182nyEOyNiXmlqrTasHTA6EF00+c912SOQwNy+iRS4K9C6QDuWLX/Wz6x0LO4Qo0j40BEDoG9+p5xaA4gILuKms4Ln0GZaWzDrgrxJBiqDnH/T9wNdLgJf0Eitd1PJ5cLwYHsNmlceyR5wphsL463XPwYH09RRJgHuvSXHbbrIPf1rdjaiUPoEVZK1evIf3kcriVSTNY+FW3BfTAJxnH+aJNqmRpfB4D9SZAeqy2QVV9V0jy8qbI+CYAFAaLR4+jgC0FEntZ/I2NyEUAD5F+19ZvCY0U429+4yaLfEpyjjEdYWLtYg+2ONwVc2YY8SOmoas7wz22LRERqabPSWklwUS6xxU3KPvTFpo1dyUH3wWdSgOnSfxA== 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)(15650500001)(4326008)(16526019)(83380400001)(8676002)(478600001)(66946007)(5660300002)(6666004)(9686003)(2616005)(36756003)(1076003)(956004)(6512007)(6486002)(6506007)(86362001)(316002)(52116002)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?Sk9WNH4NTQkB3CvpqPi4nPS6Mjj?= =?utf-8?q?J0kUu4i8TeeoBE1EDD/F+3eXSLjqOgXAxzXbneZi5aKIp6yRbkYfb60s?= =?utf-8?q?mqLdTsdESYqIFlvvcmBUdp0Igrzp4lOXXRRy0UOwz+u5Qw7w0YghM9fX?= =?utf-8?q?hgTNHyBp0WD5hb7T0SLmix3BdsW6+J/UtAquovJGzMCXXEec3erQbjrr?= =?utf-8?q?yYmtTXC+3GF0d2yb1urSXn5KWw4ohfuPkLSo9ZOemeKG43RQOHzeKkt0?= =?utf-8?q?udpcOzVXEc5sU/VNyr9NJ+nRgYULrC2CMyhaQknlgdIE+kUEdwV5hadk?= =?utf-8?q?2/Di0OfB34DBGiD8uJG+XHtg2ERtzeYEfLx+RHKFBPmk3mX7xDh6rxTD?= =?utf-8?q?ljGR3GmrwoORy7J8sMBqLJQYxpeAD8Ky+Fy4ACB2lL6nPwwaudF0SOEi?= =?utf-8?q?hJ0D2AigBKDbFObm3NrI1WvpZTx/MhB2RnfyKx1FaC6Utmva3I3xj8IU?= =?utf-8?q?eVwN063sbQv00FCy8acUk3Yl4hi0NVhf7b0gHistlbztwRGFNI4G667E?= =?utf-8?q?Fy9omjh4l1HFFTiKFe/1Di2bSbHpWDs2Ny3piEWl7iB4/msG9mvs2JBa?= =?utf-8?q?qGbqni/ZBxgn4SHIMz5Gn02gwrYYdYEcE8THkHsu6JsrCP/tmQdLHC+2?= =?utf-8?q?qNmPpQqCcURtQBHj1G2I08rN/DISFLMaz2kx16MYWlLO9idwXKxSxpCw?= =?utf-8?q?NtL7I/rIGqdmSlMoUXcIG9WOs/5dTKj9Ggkd+lMrOBm2dvRMXcRLOV2G?= =?utf-8?q?C7dzf75Nhwiq9e7GlBrt+kVvgPaA82DlwyZXCEtMNM6idVjJ8s+fxQDi?= =?utf-8?q?mt+F4QHUt4iOAmqlUnBnjeWMoiVwnyXRa3Q9wOi6RuqI4P32pSBvWzBi?= =?utf-8?q?adzG5i459Uf7ViHobQqDOC6V5axl2TfuNV1shBmwJe7lJuKGHWqf+MhQ?= =?utf-8?q?qPr//f/v85KDgH64Hx6/fkFrhiLNPsz7avK5w8q5OgR2AudluVnPLeiM?= =?utf-8?q?ZH5+t7PAp5BjCxjuRKpd9TViHqWE3hNWxZpYZgKD/R5Ul?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d34abe8-c622-45a2-7288-08d8c133258d 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:29.3323 (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: s1ALzB0D34Ua1qv8vRwxBFIPRIQkmvFACy0jXE0GX5nbEmTM5lUSA2wFI4Ing3ej0yoR6iIK3eMYeJUgZNzibA== 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: Peng Fan V2: Fix imx6dl_mamoj size SPL exceeded issue V1: This patchset is to upstream NXP downstream gadget driver patches for feature update. Jun Li (2): usb: gadget: set correct usb_configuration for os_desc_config usb: gadget: update os_desc_config when add config Li Jun (13): usb: gadget: don't change ep name for dwc3 while ep autoconfig usb: gadget: OS String support usb: gadget: move utf8_to_utf16le to header file usb: gadget: OS Feature Descriptors support usb: gadget: add WCID support for mfgtool usb: gadget: fastboot: add ext properties for WCID usb: gadget: add super speed support usb: fastboot: add super speed support usb: gadget: dnl: set dnl to be super speed usb: composite: force gadget to be USB2 for HS only function usb: udc: ci: update speed handling usb: gadget: fastboot: use correct max packet size usb: gaget: ci: set ep's desc when enable ep Peng Fan (1): usb: gadget: add Kconfig for OS descriptors Ye Li (1): usb: gadget: Add ep_config call back to usb_gadget_ops drivers/usb/gadget/Kconfig | 9 + drivers/usb/gadget/ci_udc.c | 5 +- drivers/usb/gadget/composite.c | 392 +++++++++++++++++++++++++++++--- drivers/usb/gadget/epautoconf.c | 6 + drivers/usb/gadget/f_fastboot.c | 83 ++++++- drivers/usb/gadget/g_dnl.c | 1 + drivers/usb/gadget/u_os_desc.h | 123 ++++++++++ drivers/usb/gadget/usbstring.c | 74 +----- include/linux/usb/composite.h | 71 ++++++ include/linux/usb/gadget.h | 9 + include/linux/utf.h | 75 ++++++ 11 files changed, 743 insertions(+), 105 deletions(-) create mode 100644 drivers/usb/gadget/u_os_desc.h create mode 100644 include/linux/utf.h -- 2.28.0