Message ID | 20190719033721.5730-3-peng.fan@nxp.com |
---|---|
State | Superseded |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="UQB53Oy7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45qbv24SG8z9s00 for <incoming@patchwork.ozlabs.org>; Fri, 19 Jul 2019 13:23:42 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 4364EC22016; Fri, 19 Jul 2019 03:23:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 12D27C220A5; Fri, 19 Jul 2019 03:22:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7B351C2203C; Fri, 19 Jul 2019 03:22:29 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60069.outbound.protection.outlook.com [40.107.6.69]) by lists.denx.de (Postfix) with ESMTPS id 20F7DC2209F for <u-boot@lists.denx.de>; Fri, 19 Jul 2019 03:22:21 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CXN9o7ffTPLI4lmrDiHsBxKyfA+175q5XSC0TtbfFxlWp0bGvIR5odBZHozCdD+M4LBgt+RmcyKLeNRQ079f7MkEUB3Hqet3pIhLmW5sju8xHZCK/ag/vzkvDObFYLIckfaU1q5i6bxB4/HKki8COJHKTSeMJjtmerQ5MjHwtg9/RhzE8SJ5WC5AgbeWgZnCe0iZ2iw0GeNYdbtH/IGt3VPjdW63hOO5BJ/AuxWslk3l2/5wjNjQs2dNS2oP0CJBv2LrUGTyYm+ZLs/cgA0i6w6qSk3wLnJlPForRNCmVMCPDl/HPSGYwJWaWqVOS6Ymep561jQ10pgF2TH8hHoGhA== 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=jvIQB2MGTikHwzlendIoLjxPhjcktpRB35IaLhAjn5Y=; b=n1HIMv3Jy1rKalo9xfESurAOY5eu/eoKTbNRAKE2jZQI7y3EsjNhNyDPI/zIfcrWlebm6bxKVGqT3oSKx88912fGV+kXozi5zIuUf6i7/SbhK+sQqpnfx23vrsudDzI0B8b39tlzBtYITDVR7p9BRsARIy9cB6dN6FTULgcVYFV2NH8C+Bn5Uqi/941GGvjWef2Y4fONCUqIcbDwc2VkfwOtjR0AJJHh622ljy1iKkDoqSgcqXoAaRtHWimiwzWEyyzENBcWzfVD8KYO/TwTiS+36Sr/Tj/a0wl6Yufno8IVTUDOWpa+8xn3O3NImpUkP+EPS1a9SYKU/DBcYU7e3A== 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=jvIQB2MGTikHwzlendIoLjxPhjcktpRB35IaLhAjn5Y=; b=UQB53Oy7aogEqzoUuk+C4hXLa7QOpNGzNL43wzNWauxwn29MmOGl8iV6Xp+b+snhBWHxVpUnErwls5g0wpc2k+iTJl4yfcp2ezkhSBc8iXsxHEVitmal1nv1wGxu6YRn32PrekoC+UQsKbH2AG477U7TwvWFro1hr5s0AYYXkVY= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5332.eurprd04.prod.outlook.com (52.134.95.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.14; Fri, 19 Jul 2019 03:22:20 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::2023:c0e5:8a63:2e47]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::2023:c0e5:8a63:2e47%5]) with mapi id 15.20.2094.011; Fri, 19 Jul 2019 03:22:20 +0000 From: Peng Fan <peng.fan@nxp.com> To: "sbabic@denx.de" <sbabic@denx.de>, "festevam@gmail.com" <festevam@gmail.com> Thread-Topic: [PATCH 3/4] usb: mx6: add fuse check Thread-Index: AQHVPeEs1aCWUBBvW0u1uFFF5ctumg== Date: Fri, 19 Jul 2019 03:22:20 +0000 Message-ID: <20190719033721.5730-3-peng.fan@nxp.com> References: <20190719033721.5730-1-peng.fan@nxp.com> In-Reply-To: <20190719033721.5730-1-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.16.4 x-clientproxiedby: HK0PR03CA0048.apcprd03.prod.outlook.com (2603:1096:203:2f::36) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b5749728-e166-4174-20c9-08d70bf84ec4 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM0PR04MB5332; x-ms-traffictypediagnostic: AM0PR04MB5332: x-microsoft-antispam-prvs: <AM0PR04MB53320B1EFD105A1EA13C792A88CB0@AM0PR04MB5332.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:962; x-forefront-prvs: 01039C93E4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(39860400002)(346002)(376002)(136003)(189003)(199004)(2501003)(71190400001)(71200400001)(8936002)(36756003)(99286004)(4326008)(486006)(44832011)(1076003)(86362001)(81166006)(54906003)(256004)(110136005)(2616005)(5660300002)(53936002)(476003)(81156014)(316002)(66476007)(11346002)(66946007)(66556008)(446003)(66446008)(64756008)(6512007)(6116002)(14454004)(7736002)(2906002)(305945005)(3846002)(186003)(50226002)(66066001)(6486002)(386003)(6506007)(26005)(52116002)(25786009)(76176011)(8676002)(478600001)(68736007)(102836004)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5332; H:AM0PR04MB4481.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 12GWcrestkwRf6Jzqm5Xq1Sqa9AwDVj+LA4PriVAoWjpH/XhgVme5/KgywbavH8mXiFknmZKzQ8HYdm1iey1uSEnG+sCrKf/dgn584xXkGZaMeTlSxIWtIAoHlfMEjo7EhMbwdFinbTvllYNQU2n/2mtQTY6U9GwIymbLcZeVoMG56SEMKCOs8e8O3nLVfoq9r5JYMWOj0s8nz3ACpNp921xa5nwrTgfuEQz4SpOebOkLbnMIWqqXw4BkK92eXlJgK7nF1PwH/Jebg87/RL8/ihtvSNn12f9piGZc1KS5Adot7LGXcIe1SjNtzHdcte6pFnaPxNsRTLFOSqkynDOj2tJ6g0VVgqp8GMfknLZvVsm7xq7lTadwSmjbZYXVdidVBnzE4pQL8Gm0AC/Ax36tr8wBwrb6Qvj/0VIeou0e6g= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5749728-e166-4174-20c9-08d70bf84ec4 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2019 03:22:20.0823 (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: peng.fan@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5332 Cc: "marex@denx.de" <marex@denx.de>, "u-boot@lists.denx.de" <u-boot@lists.denx.de>, "joe.hershberger@ni.com" <joe.hershberger@ni.com>, dl-uboot-imx <uboot-imx@nxp.com> Subject: [U-Boot] [PATCH 3/4] usb: mx6: add fuse check X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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: <http://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> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
[U-Boot,1/4] imx: add module fuse support
|
expand
|
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index e9e6ed596d..3d67f04041 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -353,6 +353,13 @@ int ehci_hcd_init(int index, enum usb_init_type init, if (index > 3) return -EINVAL; + if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) { + if (usb_fused((u32)ehci)) { + printf("USB@0x%x is fused, disable it\n", (u32)ehci); + return -ENODEV; + } + } + ret = ehci_mx6_common_init(ehci, index); if (ret) return ret; @@ -549,6 +556,13 @@ static int ehci_usb_probe(struct udevice *dev) struct ehci_hcor *hcor; int ret; + if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) { + if (usb_fused((u32)ehci)) { + printf("USB@0x%x is fused, disable it\n", (u32)ehci); + return -ENODEV; + } + } + priv->ehci = ehci; priv->portnr = dev->seq; priv->init_type = type;
Add fuse check for USB. If the fuse indicate the module not work in the SoC, let's fail the initialization. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/usb/host/ehci-mx6.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)