Message ID | 20190801090117.24692-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="nDk4Rs7Z"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45zkRy1JF7z9s7T for <incoming@patchwork.ozlabs.org>; Thu, 1 Aug 2019 18:46:54 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D59A4C21DF8; Thu, 1 Aug 2019 08:46:36 +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 B4F5EC21DF8; Thu, 1 Aug 2019 08:46:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6727DC21DA6; Thu, 1 Aug 2019 08:46:01 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140045.outbound.protection.outlook.com [40.107.14.45]) by lists.denx.de (Postfix) with ESMTPS id 3EE71C21E30 for <u-boot@lists.denx.de>; Thu, 1 Aug 2019 08:45:53 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PpfuRBKerYW+rUMVg4RH69dhCnTdxNFClyWyjm3ATnj3BEGuS0G/fSowTHJb2ZbP6YaxA6skzTdTRCeLBsPyNpcq0ZKsbsdd3x0ckp+bI11tFeRW3gd6HcKXY7ive7CyDBPj0eqwaj7rgjUZykCMceZjkYe1PKvdboUQbWngflLztIR7pwpMPiT0RxlYz9vQEd9Mu6vuXXvMPcBBEyG5mGpaFPJz8lJBTY92pXnuxpjByeYgbx5bXth4QZn2mw/STrs4eBzPGAZOXD/gGhaDnyRR6wX7qpuTuROOsxT26ZsUNElLWMEhC2HynMp1H9yYiln8FC3hJNV3cuGGqdZnUA== 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=1ASM1NSZXdEiu88vb9fN/hGjYSZl7vaK8CT2tMlZLds=; b=hWZiF3psN8TxvOaKOFPz3gyIXYfxsxL9dKAquF8zX6qfZVc7C23nNfLms4LcRfaUhLAzl8m9YwugiKBXNKx4IOn6kpEhDjIz5fbygP8KJF+uWQjqxT7fZWIVAZv3Wg2oMUMvAQrpDI+8y2ywQilBM8BP1m7iSvYcDc6wI9OOuEIoIBE6L3xvh7psolarSEbvDj8e00albXta/LaFdBnS+58Y2nc07m1S/aIB6v/VYyLdiL9mZzIpPvrPZ4WU83/+kq+g111pS5ghyt04+e2XPSLEE9j10kXn2MmqW1tjjk7GwVRyR7aNxNDqB1iTkFjFBrOHwEKX4XRMmNWhScNDwA== 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=1ASM1NSZXdEiu88vb9fN/hGjYSZl7vaK8CT2tMlZLds=; b=nDk4Rs7Zb4rFIKL8GJxZvs7yUoWr3pC9Tf3c7F/S6MrBPWxK3UxmvA2MKS6uy9glIq0pK/UkXTtOiuyG7J41X/jyoW6xDX/iXHuwgh9GTB+QixuxNRd49cbzHhS4JPkzwwYKobZf/P+FxG/ru/FstlTRPIrSb/m4BKQpgRZqlB4= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5571.eurprd04.prod.outlook.com (20.178.114.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.13; Thu, 1 Aug 2019 08:45:52 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::5d98:e1f4:aa72:16b4%4]) with mapi id 15.20.2115.005; Thu, 1 Aug 2019 08:45:52 +0000 From: Peng Fan <peng.fan@nxp.com> To: "sbabic@denx.de" <sbabic@denx.de>, "festevam@gmail.com" <festevam@gmail.com> Thread-Topic: [PATCH v2 3/4] usb: mx6: add fuse check Thread-Index: AQHVSEWGth0W+07CcU+TGc8OyNcxyw== Date: Thu, 1 Aug 2019 08:45:52 +0000 Message-ID: <20190801090117.24692-3-peng.fan@nxp.com> References: <20190801090117.24692-1-peng.fan@nxp.com> In-Reply-To: <20190801090117.24692-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: HK0PR03CA0041.apcprd03.prod.outlook.com (2603:1096:203:2f::29) 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: 2c9fdc23-4271-4f78-ffe6-08d7165ca8a2 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:AM0PR04MB5571; x-ms-traffictypediagnostic: AM0PR04MB5571: x-microsoft-antispam-prvs: <AM0PR04MB5571FD0998B1361ADDF6D21188DE0@AM0PR04MB5571.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:949; x-forefront-prvs: 01165471DB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(366004)(136003)(396003)(376002)(199004)(189003)(6116002)(50226002)(6506007)(25786009)(1076003)(66476007)(64756008)(8936002)(4326008)(71190400001)(7736002)(6512007)(66446008)(81166006)(81156014)(8676002)(66556008)(66946007)(54906003)(3846002)(2501003)(186003)(2906002)(26005)(478600001)(68736007)(99286004)(53936002)(14454004)(76176011)(110136005)(386003)(36756003)(5660300002)(6486002)(44832011)(2616005)(66066001)(305945005)(256004)(476003)(86362001)(71200400001)(316002)(446003)(102836004)(11346002)(52116002)(6436002)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5571; H:AM0PR04MB4481.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: xweSEREn/1rDLemLH2dSbV8lcqSU+1zFR494Xqe+ZqVMsm8H4RU2eM83+pEsX8K/9rdizkASDi+YWGw+vX0g1ZWJFyJyt943Ae7Y1qJbRCm6l55xYg0n5RUsvdWL2yGeAPwo9T6JxufpLrj7YIuheiGwWzR1Gn8m4YxWsnokE8G3JRMuJtmaJDwf1rD7Al/6fWJkDB2CINJTmEeVwsU4LPuXLY38rtBzEqyMxcI5953EOahw6uMqL1nXAamjOdnypmp+amDZncs141QSXMqiU2Bm9VbcjaOsZRSB3Yw+QLgssUKNWZsi99vhb7R3m7QDikAfUVkTNq5Qx9m5c8X4GF/g3TNMBJv0FiG+bkPJxrI00EheSlGp5BjxGmgW6j/AuqTXnxMRamhwFoqv2tb3zP19TbmooAAmgM92HRy1S08= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c9fdc23-4271-4f78-ffe6-08d7165ca8a2 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2019 08:45:52.2079 (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: AM0PR04MB5571 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 v2 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,v2,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..4a298849c5 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -353,6 +353,14 @@ 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((ulong)ehci)) { + printf("SoC fuse indicates USB@0x%lx is unavailable.\n", + (ulong)ehci); + return -ENODEV; + } + } + ret = ehci_mx6_common_init(ehci, index); if (ret) return ret; @@ -549,6 +557,14 @@ static int ehci_usb_probe(struct udevice *dev) struct ehci_hcor *hcor; int ret; + if (IS_ENABLED(CONFIG_IMX_MODULE_FUSE)) { + if (usb_fused((ulong)ehci)) { + printf("SoC fuse indicates USB@0x%lx is unavailable.\n", + (ulong)ehci); + return -ENODEV; + } + } + priv->ehci = ehci; priv->portnr = dev->seq; priv->init_type = type;
Add fuse check for USB. If the fuse indicates the module will not work in the SoC, let's fail the initialization. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- V2: Fix build for aarch64 drivers/usb/host/ehci-mx6.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)