Message ID | 20190730080758.8484-10-peng.fan@nxp.com |
---|---|
State | Superseded |
Delegated to: | Lukasz Majewski |
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="lWsbgsiG"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45yTSl2gM5z9s3Z for <incoming@patchwork.ozlabs.org>; Tue, 30 Jul 2019 17:58:15 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 12538C21E68; Tue, 30 Jul 2019 07:55:13 +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 1A8A6C21E1D; Tue, 30 Jul 2019 07:55:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 83EA8C21E70; Tue, 30 Jul 2019 07:53:01 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150053.outbound.protection.outlook.com [40.107.15.53]) by lists.denx.de (Postfix) with ESMTPS id 7FABCC21E02 for <u-boot@lists.denx.de>; Tue, 30 Jul 2019 07:52:57 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kigr8inwVaQtaZvs5hd9bMCeBNe7Ide1ODTEk09q/WxW0sWnw2nUydN1SSmZKpG11F61iNxCKzZ6fTcS5N9IPGj3lWZ07cpL+QsDuSwE4u0dj0NzcuTbwNC89L8tplE/ZJyMeifBMkC2pAnJMLlHwcyk3ry52KNuoQbtjh4+vjC+Gq/xf3VfIEB7krnF3moxH3wOR6+Klc/13pMhf8FkFmh8n3oPgDm3GLdJ2RxkHWugDe5g1+9qKFW6qyJVvqRB+aGMCfl1hsjsiOh2KWyGyTGCIxpZrZlkFF/vMu1qDJT5hnrjf4hk+/fGE6cyzqDwK4vrgmyT1qazIemoZVIINA== 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=CW2tGgUhp0br+ROlIKbeV1pYZ+TyMU+2LciE/k1mOUg=; b=ikGT87gNFxN2YDuPpL/1OAaTkJsAMc6IezDKZpquu9hwELxGiadr6RQMdKfWLC8pNR7P1hxLW27kEwI/8YmFEAqYt2nk6tp1F0dHejm/wqINm+ZjjhuoukeUR/EOE1F85bqaq6mTV1oZuV/cpJcJ/thaMPJzjnAw0/Llz8I6qQSwo2pNU9nu8uEKLoxql62ISRss7ie/euv6zYcyl+TM5EQ5oTemKGcYKYRWUJTfL4bADELETKhoaPrYw6PWb6tdlVQyz1rwENkI6lEPaejNkkrv1xDV05kBFWwT/yyRvPcGKgCoNKnbZB+uvdANTYjxR7Wt7HSEL+aGscpTYerMMw== 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=CW2tGgUhp0br+ROlIKbeV1pYZ+TyMU+2LciE/k1mOUg=; b=lWsbgsiGXlAHaudx2ZwAFy1x2F5iYhUB3xxPnV0aqUi388gQ/zo3Cmo3DUsZ02ba9B8027SwcBiLX7Nt6Pmr5ebxmWer1e+WwvuH0+QCTZhTE9GyqV52oyaPkM7KqkttZPSAnMF3np15QBBm8tTzbpJBYecxaxK9XFcrXm2GmFY= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6931.eurprd04.prod.outlook.com (52.132.214.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.16; Tue, 30 Jul 2019 07:52:56 +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; Tue, 30 Jul 2019 07:52:56 +0000 From: Peng Fan <peng.fan@nxp.com> To: "lukma@denx.de" <lukma@denx.de>, "sjg@chromium.org" <sjg@chromium.org> Thread-Topic: [PATCH V2 10/16] dm: clk: ignore default settings when node not valid Thread-Index: AQHVRqvMys9dzr8ifEa/uBS+e1PiPw== Date: Tue, 30 Jul 2019 07:52:56 +0000 Message-ID: <20190730080758.8484-10-peng.fan@nxp.com> References: <20190730080758.8484-1-peng.fan@nxp.com> In-Reply-To: <20190730080758.8484-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: HK2PR0302CA0004.apcprd03.prod.outlook.com (2603:1096:202::14) 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: dd3e8f66-4aea-484b-ecb3-08d714c2eeef 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:AM0PR04MB6931; x-ms-traffictypediagnostic: AM0PR04MB6931: x-microsoft-antispam-prvs: <AM0PR04MB6931F875EAEB9AB2DDE4ABBD88DC0@AM0PR04MB6931.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0114FF88F6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(396003)(346002)(136003)(39860400002)(366004)(199004)(189003)(2501003)(66066001)(476003)(66946007)(6436002)(76176011)(2616005)(52116002)(102836004)(316002)(478600001)(6486002)(66476007)(64756008)(256004)(86362001)(3846002)(25786009)(81166006)(186003)(8676002)(11346002)(26005)(6116002)(54906003)(2906002)(81156014)(4744005)(36756003)(486006)(71200400001)(99286004)(386003)(7736002)(6512007)(14454004)(1076003)(110136005)(71190400001)(446003)(68736007)(50226002)(66556008)(4326008)(6506007)(5660300002)(66446008)(44832011)(305945005)(8936002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB6931; 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: R0sf1R5mLHE6sXf7OOTzAbp7anabuHVj2UDL/3NBkx9tHkIVX0Ay9IhkSMoVX5rXp3mMsbn/5cTBozxnvpSRehpzBGjAJzdVF5ouQ5dYYuYQlaRQhivkuwu637I12ZEceIxlxYS99wiWhWdox2pOsGdG7sN9DbuclVZSXW6yiWP/iuSLhdZCstjWnvPJ7IrWAEWIAbclfeo9aOdZuxchCzimEJdg3ef/jyW+9lfmoCKvZKwHRIb4BEPe+1eyBJ2PTckdtDfUd4KXrG7lWSM0S54cVG1q2wyPD/XBglco2XvVRG6XlDTaCPrzQ1qgdyiO3JAn3+kzEufK4C0xAzG47Z1MIB+Iz3cSDexOEbj9VjRsbaHrxJ9h+YfTcSev7subeBShlI1bVKDrO0c0nFSy1uQGVE27th8GsQ1S46/Zk+g= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd3e8f66-4aea-484b-ecb3-08d714c2eeef X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2019 07:52:56.4594 (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: AM0PR04MB6931 Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>, dl-uboot-imx <uboot-imx@nxp.com> Subject: [U-Boot] [PATCH V2 10/16] dm: clk: ignore default settings when node not valid 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,01/16] clk: introduce clk_dev_binded
|
expand
|
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 85dfe712f5..cee4d912b0 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -285,6 +285,9 @@ int clk_set_defaults(struct udevice *dev) { int ret; + if (!dev_of_valid(dev)) + return 0; + /* If this not in SPL and pre-reloc state, don't take any action. */ if (!(IS_ENABLED(CONFIG_SPL_BUILD) || (gd->flags & GD_FLG_RELOC))) return 0;
When the device not binded with a node, we need ignore the parents and rate settings. Cc: Simon Glass <sjg@chromium.org> Cc: Jagan Teki <jagan@amarulasolutions.com> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Neil Armstrong <narmstrong@baylibre.com> Cc: Andreas Dannenberg <dannenberg@ti.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- V2: Rebase to master drivers/clk/clk-uclass.c | 3 +++ 1 file changed, 3 insertions(+)