Message ID | 20190731071654.9970-10-peng.fan@nxp.com |
---|---|
State | Accepted |
Commit | 91944ef09d603f6aa41649b2a1fdd64fea9651f9 |
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="bLFPbsRT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45z4HT2Q4bz9sMQ for <incoming@patchwork.ozlabs.org>; Wed, 31 Jul 2019 17:07:17 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 193D3C21C27; Wed, 31 Jul 2019 07:05:27 +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 F1BA1C21E0D; Wed, 31 Jul 2019 07:03:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EDA42C21E0F; Wed, 31 Jul 2019 07:01:56 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20085.outbound.protection.outlook.com [40.107.2.85]) by lists.denx.de (Postfix) with ESMTPS id 938F1C21E15 for <u-boot@lists.denx.de>; Wed, 31 Jul 2019 07:01:50 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BRC7QxIkKlY0K8GE0XSeGD9NsZFx47xo7V2MAvp//YJvmqKLspna/YZl+e9TDE8WJjEeX21xcNfKN7S9X2XzKYZXO0bTeqNSvyYmmuLEOi0p0jr4eBuXPPccVxxFI1SH5qEFIY8YkkMFTDgMqN3fq4Vt4jfrDuUp9bzUUPIPCQukoNG0x6fe12HLamm3oS0RC2QRYGdSXvpsgh4sRCUWlrm45PvSLm7nPt71UBVRqraD8Ky7qdkyHfmP0EhCQDFJYQdbhhbsJpDZt7wOAMe1ubLqpP5+IhL2+ZYreIovvtWdgB3TwTM2NB9KgRbFFz9J7brL2Dgh942Ed7dRl/Ao7g== 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=5TtILxfheArcTO69nizloU0P9NCUfIobxppjKk1eW6M=; b=XNopdr1t6NxMsUjWGhdeQ2LAEqOZ2ZGE9r6HXu9uqObmCpqY3MWxgxyIRJPo76gU45q44EO4P72sOh0cB9Ia4hLGra5TvvD/stvGLPf7JO5y6uoBTIE2iPhq+Ir0WveoHK3WE3R9IR+5qB0thod5ADlRaROfHL5lFHOgj2LFTq94hJpvUaYP23FmQ3q1xmPWqvxGIJvOvMKwT/+Ni5HsoXuvDvchIgLHcHOGvVvr6YXHxSrEiEGK/7lOL8q1cQLTa+uRzTvfOqFffHMoGpvSnN0rTP2yojopbKAG3/xWUEmCZXAMA6qTDtJnjZheXcZG+6TscGi/reecO5zNN/yXGg== 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=5TtILxfheArcTO69nizloU0P9NCUfIobxppjKk1eW6M=; b=bLFPbsRTxSEQnZHTZBhxWo+r7TaxAhGLGw4cgD8LWq/WDWhsw3mcuVFEpTveN5/gd8Q+F2JxsXIB1/PHrCXg9EXLar+BQgWm2S1AOWqh1Cza5YrFYu1bW6qnKs3t5ctTxj06TsB4mPdeV0X7GmFL+TTKVIuC8e9giFF3EQvyKhI= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB4193.eurprd04.prod.outlook.com (52.134.91.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.15; Wed, 31 Jul 2019 07:01:49 +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; Wed, 31 Jul 2019 07:01:49 +0000 From: Peng Fan <peng.fan@nxp.com> To: "lukma@denx.de" <lukma@denx.de> Thread-Topic: [PATCH V3 10/16] dm: clk: ignore default settings when node not valid Thread-Index: AQHVR23SKRfbZHPGNUukpX9e9N4sMw== Date: Wed, 31 Jul 2019 07:01:49 +0000 Message-ID: <20190731071654.9970-10-peng.fan@nxp.com> References: <20190731071654.9970-1-peng.fan@nxp.com> In-Reply-To: <20190731071654.9970-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: HK0PR03CA0026.apcprd03.prod.outlook.com (2603:1096:203:2f::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: 42d37321-2d2c-4543-b873-08d71584f546 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:AM0PR04MB4193; x-ms-traffictypediagnostic: AM0PR04MB4193: x-microsoft-antispam-prvs: <AM0PR04MB41931573BB04B8C08DBF673788DF0@AM0PR04MB4193.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:2043; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(346002)(39860400002)(396003)(366004)(199004)(189003)(1076003)(4744005)(25786009)(5660300002)(66476007)(6916009)(66946007)(66446008)(64756008)(66556008)(26005)(99286004)(52116002)(11346002)(446003)(186003)(66066001)(2906002)(4326008)(102836004)(316002)(386003)(6506007)(7736002)(8676002)(53936002)(8936002)(81166006)(68736007)(86362001)(5640700003)(71190400001)(6486002)(2501003)(478600001)(305945005)(6512007)(81156014)(1730700003)(71200400001)(36756003)(476003)(44832011)(54906003)(2351001)(76176011)(486006)(6436002)(256004)(2616005)(3846002)(14454004)(50226002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4193; 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: xUQmIChj1mpT00dFVZYM5dgxE9/40YeJNAbXdsDXMI6O3juQIPAT+6Tyqh4Rl3pjgU3ZFchCEUDE3xYu5jBlpjXX5aslXNMhgeIr3bdSqW9M03RxOKlR5JRQsilZ5+3eq4qSsWjxI3zQS5iD16F1SlX6FNd2NbDVb86n3aD7CPafwbrTjDkWVX/638TUj7J//0ESA7WlsyevkQ5ioxrtQjIJaDPLiOPK9layN/QqiT9X1VcfY6gj2klalLq1Mk1VP0iwshgMGYHx5ex8ezUfoldcNI1g9srujRY5jrz8vkJleCJXL7OyqAZI2t6SDQMbef4iEQjtIX2wHUEy1+OFzVGRiOzqxKo8a+ekig7vAIUE6DRpBrhUA4qHWzfvN5R85LfPjXvlIkMj8sCtee3aN/lFM79LWeJwBSKPfprd/vo= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42d37321-2d2c-4543-b873-08d71584f546 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 07:01:49.4641 (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: AM0PR04MB4193 Cc: "u-boot@lists.denx.de" <u-boot@lists.denx.de>, dl-uboot-imx <uboot-imx@nxp.com> Subject: [U-Boot] [PATCH V3 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,V3,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> --- V3: None V2: Rebase drivers/clk/clk-uclass.c | 3 +++ 1 file changed, 3 insertions(+)