Message ID | 20210125134400.780-16-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 c13csp3994515jam; Mon, 25 Jan 2021 05:29:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJywJEljlj+mDZ3nr73p6SxoOUo2mZcz37qKS/Bn9LYS1ii8emYeZxqC4I/BK0hcsIeFWESe X-Received: by 2002:a17:906:ca0d:: with SMTP id jt13mr367850ejb.170.1611581374873; Mon, 25 Jan 2021 05:29:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611581374; cv=pass; d=google.com; s=arc-20160816; b=hQVS6ZMwjRB70lj4czH3sDx5cHgGwIkhswTT/27z9cQlen4IAMGsjBl8VACFrh4qrT cyj3tWhboNNvRebc/mkUJGzvkxZuu+zUZaE4zQ2308mvv1+KtO2sO4FmwMRn0TBSHEr/ baTu7YDhy3S1RO5K8ihPgVvCygSDMOByUdc8f7UE2dG9u50dj9RmgU8AptBHPp4iM9X/ Z8NhivA7OzhkHtwkxiorwibRjj5sPV4KtG+GED7/2bGnIWzFg5i5Nfm9W9iDlB5UQB6W 2kLqGq8l1Zj9zFczJ6nkEBoHdf/SXeZPVb8+VVIWmFHkD2iVAbro6t33xa3CHCvEHl5a GEoA== 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=t0mAofHEPogoFDmoSCCwe4OrpBmaf8r2x2aSDAs9108=; b=YD4aVgLrHzLNRrLmqyU2x2fCth+QlfV7VAKQTCFu/DiRQ7SbrQ/Jg09aZ+LlN1PN6h YOywuXs1KuEfPZddza7qcZ2LKm7ZV9tcPEkZUN3g3Mr3022k1zctA49/vr8/OlXv6u0z ZijEfyHCv4bt5hrTHK5uQwCdJ/nc7foxHbylMotaYbwAlkw+8/SFVak6nO1noJDAitV7 TMTXVTkTQcUP3/wi/St1P7WF3G3vImce1ed9zsak5F4bTxisZ6MzZtcQQ8o5xPZ8o0/k xpkyxt7pWyrQFB2IlZpNDyz61p4A/PzdBTpVMWVfkrvDfBA0rEQ0skRFbToIqgrUGknx E6hw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=W87r7sbk; 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 q3si7485215edn.37.2021.01.25.05.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 05:29:34 -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=W87r7sbk; 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 BEF1F826FB; Mon, 25 Jan 2021 14:27:12 +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="W87r7sbk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 23579826B1; Mon, 25 Jan 2021 14:15:25 +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-ve1eur02on0624.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::624]) (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 C57C482642 for <u-boot@lists.denx.de>; Mon, 25 Jan 2021 14:15:21 +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=VNxaWPJRCaJFWz9+9DXyqhg/s8QolukWY9L+5fdLP0zCLFX68en+KChZ4bzmVw8uNAzDLnPggmR83cg64wAFnBsA7ox57okET6BDXzA+kqynJfH9Mp6QefjjxzPPi0eflXvfY2D2N0ZQCOBzxPScKI1usI32Ykuf+0wvq4rTGrebeeINXqvSpcze5BPguja9YzjJchknri5wnzIqL0QW2nexJsTpkBUzmWhe5TJE1oKAlLi+/x0J0FGcQ53euMMYpz1IBXcuQnKUCg0dJYn745afMqQ9d/K0R0S6Yi3XdoWlOPoN1l6IXEpp01Z5qqjyJYmp5WtPzzA540xwE9XsJg== 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=t0mAofHEPogoFDmoSCCwe4OrpBmaf8r2x2aSDAs9108=; b=Fzk44KRZewgwJ8OJcCO55mUmXTpB/HUBy6lPlOmdaoDrMiKJOG6XBrvQQz1B4u8q3HEBVni0kRiYYTxMZRVBuXK/er9szx8z/YA0xNDrwsksziqDllw32WHNUhuYqA4+xnFbCjsPovcbfQCFNg0HJEka4TzqDCgEzP2bu/H1inFkbZ92KWeEml+hMmJHnKxAst0XE1XF/fwpzEEhyay3B+rcqT/cOWjUMR116TEc2L7o3XHHBAj6flO0yr1WzHIa+676xhvbbR5bhDY2mw2/9qVuDukjdKThqH3cqm6Xa2Ov4DfHkcue+dlrENQsfYzcfva6KPKwf0s3TW35HBomMg== 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=t0mAofHEPogoFDmoSCCwe4OrpBmaf8r2x2aSDAs9108=; b=W87r7sbk51MyZe31WDLQlb5oQiloLRQDkBq8KDmeDw/G6LOSPt9x12TTrg31PVB4CIrP3uSHgbSaRDOOtm4XiALe4HymPIOcpSJrqj4z+GcnFs381d/hZw9XuPk8zJOQNIWjr18udreK83N1S5s+fysq8M1SJrfQbdkD3ySmXyc= 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:21 +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:21 +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>, Ye Li <ye.li@nxp.com>, Peter Chen <peter.chen@nxp.com>, "faqiang . zhu" <faqiang.zhu@nxp.com>, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V2 15/17] usb: udc: ci: update speed handling Date: Mon, 25 Jan 2021 21:43:58 +0800 Message-Id: <20210125134400.780-16-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:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c24f78f1-f1c5-479d-c09a-08d8c1334447 X-MS-TrafficTypeDiagnostic: DBBPR04MB7930: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBBPR04MB79305CE24CCFCA1B8CC611E888BD0@DBBPR04MB7930.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:747; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nI2k51/VJReFnMuSD3MLY3KZxT00TdVF8ZuTXyzJao81ms0yAHKLiTaddG18D+9KU1oNoIHvwaBQIdCer92UmK5VCRHUZjuv9yb3IiTjgsPNQ1N/DrR3EhW2p/2jQRc2xWz/UjPmLKdnJAlkeCcddqG0xCGK6QEt+cYow5MNEcnSWpQLrX2Zt355Iq1OiWjkzD9iMgQ7TKWLBwtUQk8VTul6YYjBDlk0NcLnIZKdIgekGHLaPgpuA7fR32onNdNiNqf+X6lZwpDl4zC+o2d+ewXu0fuvQIwavQPLNdhUj76zlsz3rj6PoZU+xC85Irld02aM0RmRoj49lapfVfOAAI4KWrsca/AbmQ8RpsPUTTP2FrQE/PXvgZZMTVR9TmuTp+wMJWDeB6fmviWdqoaMuQ== 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)(83380400001)(8676002)(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: vsEluDTsLwrnCkG1uYj5clAOC5tq+6CTPNDyyPAYFSo++r1TRnqs7BHLIOMGNTLgJYqWb+KP35gpVBUiSNtwRUWGNOw6W/VftbopYqLzDmt64Ks83s6atHXl5U3QPrvklMa6RCQGBVApQQdIvl06GUtP6dcUnhKvNGX5FY6+gF6vp6Q7N+3Flbag1QCD4Ej6z3lNZ9hTS6qmy3R+Q0zI6cDrXE4R17k4GrVnIl/NSdfscRpV1RkV3wMp1P1OsRAJM8N23Rg6AMZYkHXfnk0y9+EqNNlIs8iZ145TGg2wt0fmYLAt+HC5NmzyE6EVqot6wUhFhik9A/DzhSOXhLfbb3wYkXk5ED/3ahYOrOTra7AaXYSuWnS6vD1/RoFAkuDIYbZiUReS2XZ8QPxSxh36Cy9ta561PQ7Omr4SwbeeyAGBnx6lEUxcvedVxaL/6nQ7fcJbfICfNn8CltDn2JYOvMxjW7SkeQRG+VQ1SPlMjBEMUp7CcQUVF78GK4ADjl22lweJBgwCih+amqjt8sXAGMunXvSqT5m1DCaN8XfU3L4rf15vrafVH4BdkDnYus2EY4j6skkjDyNciZDvSZYhmn/x489UUpgUkDU43QImqEuM59T38hnucUtqo9qywtmGKwsWCLa714BEaXZOLGGQwaWadnmvFP1HE+0ghKixBdlu8PhNffqUOVIAu0+dzET/SYIO8PqYhhHzo+LDkK0ddEQ+V2VHUuF490k78kOvTxBfFCxZyxAfH5FJNB6zjVWrHz/99xw3BKB0xdL2BcZ8XjFg3JeqQvATrQ4k1ISkSIV0sXPiHxtyPneaE+ZUJNr8d7Ll/i094E8PBVugjzHCGcep/IpQjIRIcOppM5AyxX7QRlufYBjwfZWlBvQvzmUCAUvo0s8ULuIQvE8s0HPpP2XuUzDHPehPeylodnA7fBtpTH1kRj4R7Zv8fcBEcvtF6Ck+92IZS6VN56ZBSeaBFmttci+qG587mEaNPNLh34wqGCE88JzvpbG84pNhjwds X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c24f78f1-f1c5-479d-c09a-08d8c1334447 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:20.9939 (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: z4Hr5HJVowbM6lzZOfYN+F0iNLiNQcy4JeQ2D+trktG/IjGwVXoVMEQXqexgODCjn0lIzWEKf/vUWjrA/LD8Rw== 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 cdb8f6fb3d..b64e4bb605 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -145,6 +145,7 @@ static struct ci_drv controller = { .name = "ci_udc", .ops = &ci_udc_ops, .is_dualspeed = 1, + .max_speed = USB_SPEED_HIGH, }, }; @@ -1015,8 +1016,6 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver) return -EINVAL; if (!driver->bind || !driver->setup || !driver->disconnect) return -EINVAL; - if (driver->speed != USB_SPEED_FULL && driver->speed != USB_SPEED_HIGH) - return -EINVAL; #if CONFIG_IS_ENABLED(DM_USB) ret = usb_setup_ehci_gadget(&controller.ctrl);