Message ID | 1547823182-6756-3-git-send-email-abel.vesa@nxp.com |
---|---|
State | Changes Requested |
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="NBJnKaXd"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43h3sk46G1z9sCh for <incoming@patchwork.ozlabs.org>; Sat, 19 Jan 2019 01:55:54 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 1A356C220DD; Fri, 18 Jan 2019 14:54:09 +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 AB64DC220ED; Fri, 18 Jan 2019 14:53:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 33804C21DC1; Fri, 18 Jan 2019 14:53:18 +0000 (UTC) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80041.outbound.protection.outlook.com [40.107.8.41]) by lists.denx.de (Postfix) with ESMTPS id CC229C21C3F for <u-boot@lists.denx.de>; Fri, 18 Jan 2019 14:53:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GFYdfcKCZnwMxUXahRFGRxR/sHSg3kAgqO5220//CeY=; b=NBJnKaXdfMnyARpcl5UM53DzuGqoEJAPb0drYCVfBmReiA+HGEpE0yfuywzCdRLUjI1jbUW8ZYXYAelO3AFlqtvozI9sD0NMeTPIas/Jdu0Gib/t4kH0o1LOy9KuiJeSQ0HI7NGW78r7d9BRuHupFfDDaox64BGQHMOjNfYARno= Received: from AM6PR0402MB3654.eurprd04.prod.outlook.com (52.133.28.145) by AM6PR0402MB3526.eurprd04.prod.outlook.com (52.133.19.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.14; Fri, 18 Jan 2019 14:53:16 +0000 Received: from AM6PR0402MB3654.eurprd04.prod.outlook.com ([fe80::24fe:718b:a240:1aee]) by AM6PR0402MB3654.eurprd04.prod.outlook.com ([fe80::24fe:718b:a240:1aee%2]) with mapi id 15.20.1537.018; Fri, 18 Jan 2019 14:53:16 +0000 From: Abel Vesa <abel.vesa@nxp.com> To: Tom Rini <trini@konsulko.com>, Fabio Estevam <fabio.estevam@nxp.com>, "u-boot@lists.denx.de" <u-boot@lists.denx.de>, dl-uboot-imx <uboot-imx@nxp.com>, Peng Fan <peng.fan@nxp.com> Thread-Topic: [PATCH 02/26] usb: ehci-mx6: Make regulator DM_REGULATOR dependent Thread-Index: AQHUrz2LhIdu/M+nIkq8or//5S2u4A== Date: Fri, 18 Jan 2019 14:53:16 +0000 Message-ID: <1547823182-6756-3-git-send-email-abel.vesa@nxp.com> References: <1547823182-6756-1-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1547823182-6756-1-git-send-email-abel.vesa@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0402CA0002.eurprd04.prod.outlook.com (2603:10a6:203:90::12) To AM6PR0402MB3654.eurprd04.prod.outlook.com (2603:10a6:209:19::17) x-originating-ip: [95.76.156.53] authentication-results: spf=none (sender IP is ) smtp.mailfrom=abel.vesa@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3526; 6:rw07Rpx0zxGsN7F80s2LXeemSUiwkxmKCQDl3XeI3Uv6OuPfoSBPCYYLnowGmURWw4BxIgYFtLAmxi3wIBuYsDKJKUODt1yFkImqAhISz/kuxIFc46gFRmfLJeZQOtClM++AL+hIIEe0ykzCEDwYT12LYJSPJcLsMI4Tk0Ak7G+QYxSFoke+71uCHh4YrMPOEIbFWqaWy//W/u+XkTJOSaNFmlrx7K8WUNNTKr2TKnQoq3sh9/FLnGTjLKxElkH6Yr8f1/oInJc6WZKVQlbEFM+SDbrkRe/85iIFo7lhcUCKqJV5Wu3NPIABKNfPPaBcX3mqYmGXEcEGofoKYrbNbGDhxbTpOQx7DSCmBe/f3yACViiM/P1UgITogm9PRAk7P82d9Fvv9UQjRBB17rOe12Xw9a20ghdceh2y4u8x2c51hDgDqRUMO/bjh1taDl1g3xdpKC4PgJQNmxGCYU1ZmQ==; 5:h6Ll8l5Wkc4aRZiR6m9cIdZA4u8VUlCJn2SuMWAKDnsWvyCbG30hbizfgk/c2LwMhf66DsZY53Z1CxoH6BCCJSFx1p9KChLSghMs7Mu4hiUhpbE3sA6Eg1EQRUasyspM3VBQlRLzx8i5emQDgaH9BOgkkb+eBI5YSljnmpFe0T2jdVNw3Gm+N3g3UktcDg2okUDSfvNmGaKyra/PUDbcUw==; 7:ASm6PY6tpHnAhQUuMojOHv/i/GQBEsKRB0Sfkr2H9QN3YPLUN6aqGvW47iw5Aki+lziicmnUjtLY30zydBcH9I/Yy8pvrdf4cjDH3rBIeoIBdxupxlT6HhaPWGkc3Cmh1Ee68+VHx4pcLHtiyhSfJA== x-ms-office365-filtering-correlation-id: 84b286d9-e4cc-4ee9-3d4d-08d67d54ad88 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR0402MB3526; x-ms-traffictypediagnostic: AM6PR0402MB3526: x-microsoft-antispam-prvs: <AM6PR0402MB35261F01A35091EE98D1EDDFF69C0@AM6PR0402MB3526.eurprd04.prod.outlook.com> x-forefront-prvs: 0921D55E4F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(136003)(396003)(366004)(199004)(189003)(6636002)(6506007)(36756003)(26005)(478600001)(25786009)(68736007)(386003)(52116002)(6436002)(97736004)(186003)(102836004)(76176011)(14454004)(106356001)(53936002)(2906002)(6512007)(99286004)(486006)(105586002)(6486002)(110136005)(71200400001)(2616005)(305945005)(7736002)(71190400001)(4326008)(86362001)(3846002)(316002)(6116002)(66066001)(50226002)(44832011)(446003)(8676002)(81156014)(476003)(81166006)(14444005)(8936002)(5660300001)(2501003)(256004)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3526; H:AM6PR0402MB3654.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: KyxYQO5LC6YDzfoe1uwaz/U8Xtf6/nwx1LdCoXRYjz8XpBROedqedigcN4fPU4V0+NSw/dKSvtQ1Sp2q8lQic+BKhw+LxbsM6dhSLBOFfeEUsFJqPxyaxRZJjd0hv12SbyaUkVxOe2vbWIFFk7Htx1I9r/v+mGfvN5pDpbirUWbrCJrtu1TTaaw4dGeZhU3X0f6r1sF1t66CyawLJUs/zcmJfxTJUKYsUFpNJA11/IvA4xex11z804aPZWcZMNwypS+iM1xwlr+MkV7o8/viRQNd+jnjhMOfeHxLBI8kZKaHnHHv8HUiyz4ChmRhtvOv6GupSmp8qNbHHLL9stayyJBitN86cUQRbn3EKR1Edzvz3LR0VtkYfxIr+kaMGz9IzKkhcbzjggoNjZ/TjMqmznV2zbc92qa/wf0dVTGG0vY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84b286d9-e4cc-4ee9-3d4d-08d67d54ad88 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2019 14:53:15.7709 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3526 Subject: [U-Boot] [PATCH 02/26] usb: ehci-mx6: Make regulator DM_REGULATOR dependent 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 |
mx6sabre: Add DM and SPL FIT support
|
expand
|
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 1acf08d..9483947 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -404,6 +404,7 @@ static int mx6_init_after_reset(struct ehci_ctrl *dev) if (ret) return ret; +#if CONFIG_IS_ENABLED(DM_REGULATOR) if (priv->vbus_supply) { ret = regulator_set_enable(priv->vbus_supply, (type == USB_INIT_DEVICE) ? @@ -413,6 +414,7 @@ static int mx6_init_after_reset(struct ehci_ctrl *dev) return ret; } } +#endif if (type == USB_INIT_DEVICE) return 0; @@ -514,15 +516,17 @@ static int ehci_usb_probe(struct udevice *dev) priv->portnr = dev->seq; priv->init_type = type; +#if CONFIG_IS_ENABLED(DM_REGULATOR) ret = device_get_supply_regulator(dev, "vbus-supply", &priv->vbus_supply); if (ret) debug("%s: No vbus supply\n", dev->name); - +#endif ret = ehci_mx6_common_init(ehci, priv->portnr); if (ret) return ret; +#if CONFIG_IS_ENABLED(DM_REGULATOR) if (priv->vbus_supply) { ret = regulator_set_enable(priv->vbus_supply, (type == USB_INIT_DEVICE) ? @@ -532,6 +536,7 @@ static int ehci_usb_probe(struct udevice *dev) return ret; } } +#endif if (priv->init_type == USB_INIT_HOST) { setbits_le32(&ehci->usbmode, CM_HOST);
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> --- drivers/usb/host/ehci-mx6.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)