Message ID | 1524855403-15301-11-git-send-email-aisheng.dong@nxp.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6D3F5601D3 for <patchwork-linux-clk@patchwork.kernel.org>; Fri, 27 Apr 2018 18:58:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D5E2292F0 for <patchwork-linux-clk@patchwork.kernel.org>; Fri, 27 Apr 2018 18:58:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5215629369; Fri, 27 Apr 2018 18:58:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA3FE292F0 for <patchwork-linux-clk@patchwork.kernel.org>; Fri, 27 Apr 2018 18:58:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932342AbeD0S6Y (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Fri, 27 Apr 2018 14:58:24 -0400 Received: from mail-db5eur01on0051.outbound.protection.outlook.com ([104.47.2.51]:37280 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758167AbeD0S5z (ORCPT <rfc822;linux-clk@vger.kernel.org>); Fri, 27 Apr 2018 14:57:55 -0400 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; bh=nmrjpGZzSNuysmqG0Y6vdkoZxOK52GJWVWvQkRmVFNE=; b=syXs75M5m2K6Mv3PQL9fXltFW/kST9yOJ0JGazHDwqre1p4ewRibi1sUOldA/oWDcoNom596x2Pju4X6WvdT1Q/lekoZmidLVl3c2vri06aLThD9vwo2jT5Oen5CZx+IdNty7jA+wS0teIPpQ36UCNTy6xs8IAPyEyuQqtWULvA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; Received: from b29396-OptiPlex-7040.ap.freescale.net (119.31.174.66) by AM6PR04MB4213.eurprd04.prod.outlook.com (2603:10a6:209:4f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Fri, 27 Apr 2018 18:57:49 +0000 From: Dong Aisheng <aisheng.dong@nxp.com> To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, mturquette@baylibre.com, shawnguo@kernel.org, fabio.estevam@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, Dong Aisheng <aisheng.dong@nxp.com> Subject: [PATCH 10/12] clk: imx: add imx_check_clk_hws helper function Date: Sat, 28 Apr 2018 02:56:41 +0800 Message-Id: <1524855403-15301-11-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524855403-15301-1-git-send-email-aisheng.dong@nxp.com> References: <1524855403-15301-1-git-send-email-aisheng.dong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: TYAPR01CA0025.jpnprd01.prod.outlook.com (2603:1096:404:28::13) To AM6PR04MB4213.eurprd04.prod.outlook.com (2603:10a6:209:4f::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4213; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4213; 3:Wzm8U02KkL1h24U7oBcILB0yerFM2Y4x0PJJ477/xCYBePtYn9XrBo5AlmX4niKwZ/zgcgYjAa4Yp7yslPa4ySY4rZFO/1lOaAFnY6dZKiUYvTPGB291yV8y0oMi9McEycrMU8lheqSWqmjvXZRUrcVx8GrjAXIwHHQ9n5TDevgWcs62qypB3TVceNpN57Icr10GfMjnl8z5WsRNHq8UH9oabORcgmPfENoVv2aW0OUIw9KzAHkVtayubIgHcpHO; 25:KK5vmuxeuXc/kz07ALm85zAx7lCeTCy4s/3SFSFOAL2NXH3O4qIsRgIqdPXhEPVGy+uNiHtV2gPOLAxU/igQHcZhghckgCbQiAWU6YJmCMKKx/KzjyouVGx8KbROvmjbRbdC4Xt7Rht7QyGrrSJQ4Wf+1CBWG+v9jv9bpPGWAqT5dRbqtBgYMezv8gESC5/Y94ewuDknt7F4Ju/IiJSvrdoUO9oyxUz3HEotvdYIt/nCL9cL1K+sbFc/wEcmkAv6Ft/IrGfRVkV67cmdrc12PDLDMFIh6JWwDjHb0DHWwZ6FVoYbW0glNSZHLQ513k651wPThW0DMEIpZ4s988XVlQ==; 31:pLTXWhXN8PQMPDwK36ItNMVetOvxoyRSGblbJai4cGGTzMh05DKSN8PypH+VrLrE/DlSnFcYoVcoXzo3Jp8ctFqcm9X41s/2lUmC06kqpIViEx2MQkbtCIboThCWWhBilj9AtAXv7LgvoABVhJhDyqvcJtkxGyYoScQPitgmB0G8a9iq8/fNdesPV+WKMMmrYRKM18+IDVSEaAd7EizkIfmp9pllz18C6FDkMkvQV5s= X-MS-TrafficTypeDiagnostic: AM6PR04MB4213: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4213; 20:FFkbx6uMUL52wq85ujZ/viNfF89IS993yT3WIhKcts9Onh1noNdbsCLoMviv2O8nr8gVw8+7+FshuiCjEnw0k97oF1FOhuAmB9Xuhm60hX1wMIwllHflWA0+lHmcj0g1UNxHibbuCCfIhbpj7djFHv9KsMf/H5qglrod/OhsHs5D1fFj5DkjTc9La3Sk6sLZ/oCWQA4N8uYmYVhKv0cfDcuERdt8QsDof4ThDsnGH/qLtrgVnZSD2G2wc2/xHni67f6eobUXXrjc1Wo/MxYsIlqGgAEe+YYUvZMrNWvDl82IcCBOrYUjYowycsA3VxtTer88SU1sl1+NQxum425SSpY7NKruBC/GtwCazxxbQK8dbGRNEGmcQgAoZ8t6ep0s6upv/jM6cjyEbIHvr9PB+O8pF7Un8aJNIcsxBBC56pyTMp9gJ23iK0BN0N4U6EaC4Xexxp6+bwWyy7eDq3Mqd3/FkuISuGzizw5nlohaY/WktpmTPVhy8Q7FV02zXLNI; 4:+aR5iqEj0ly16JG+tlQKZBcKCZbYFSZW1ma5or6eM7mP3DWfowUV+zqLcsseyDPYFvDV3TcoztQftdrSq7IVep9Iy/ZSuj1ynuZ1Orj97c5fxxkp3HppJ9+gd/pvJCYnizYtZa8neXQaTXonFzLIpi/tIZX3j62lOnvY12yCYHv1GCDPEceYvV/HaUJbg6TSwrCS2PdeBDdAGh3UCQ4UUrObVh5ZdYAqSkO8B3U1luuGlmg8qbWT7h9VqffXXi+0r2P04KHcwyxBDhBjC4jiUW5wIINxgIBrEC9cjxMxjz2TXSSQiLJryQyMZ9gOg5FF X-Microsoft-Antispam-PRVS: <AM6PR04MB421395F9DB3D3E69B88D6E59808D0@AM6PR04MB4213.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:AM6PR04MB4213; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4213; X-Forefront-PRVS: 0655F9F006 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(366004)(396003)(346002)(376002)(199004)(189003)(76176011)(97736004)(26005)(305945005)(48376002)(47776003)(16526019)(186003)(6116002)(50226002)(7736002)(16586007)(106356001)(36756003)(50466002)(2906002)(51416003)(66066001)(3846002)(52116002)(316002)(6506007)(105586002)(386003)(25786009)(8936002)(4326008)(5660300001)(81156014)(81166006)(486006)(8676002)(6916009)(11346002)(6666003)(446003)(476003)(2351001)(956004)(86362001)(2616005)(2361001)(68736007)(6486002)(6512007)(478600001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4213; H:b29396-OptiPlex-7040.ap.freescale.net; 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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR04MB4213; 23:uhngJiYrGKEapE/e/VkN8XohmEDHGsDRNdOOuf85H?= =?us-ascii?Q?kon4146BfRIT3LVoLtkIz5qwiQoSpViAsGfbQmYvimOR10n6Cf4r95+Gxcej?= =?us-ascii?Q?0Wiun1excmsJ4mi4IL5rDSVUTKXgcYRJfdCPdPlCWnmE9RsfwExWBE3yQF3q?= =?us-ascii?Q?1hGO38lIeAqqyO4B8xRdQWb2JTbOduGnYowTy0i1BUm9UsOPLPnNeSuT9R0I?= =?us-ascii?Q?uRtKlkJ3eYmtitGvAnjRv9Q+GXwZAfxmPvYL251Q5VKvl26qDVRfbIFz3idM?= =?us-ascii?Q?6E7oQgty//lx32NTDXEPExV/G0NnwCnDWrQ/QLEOHDArUkALO3oJI83k6rzm?= =?us-ascii?Q?fHxN1JA4n6V8gK+WbZXIW5P24ZTrAU9fMUresdksBpthOKH48j+8Tt/nfrpN?= =?us-ascii?Q?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rV7OztWWcOmd2qudAwRle+Bfpn0mydFAmlOcGob5MmdelZYVXq+z+je3RnAVs2XIJWvSwaNvDq4oisfLA5+ab9GzusS+1iQ0Hz4D9vqfaOvYKKPho6NAB7emTv1Ug1E8DxR2Pfo3hl X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4213; 6:eNxSDp/O+nBa63PndgZoQO8W0oVMv4CLjxsOT6ySMsqmdTrxqUX0uqATAFz+9azR4RK1X41Hk6l+s42EK+ry8ID+0mUjEFfmZ3hB8VOctJ3XmFJNn/w9KHfI+Ud7WfSQ5Cl1i64qrxOU5ew7GMuyHxy/Pv/DPtisMc1D+avb/1uoEmOoI5uBRD0SZNdtV1DfvzbA1DFYNBpXI+6QOQpiuWRmqaP9lSIJvucHG6QTxD01WWx5zJKyseAc0B/giO0HTGL7v/wALF579iO8z8DZdIzE6JWSRvReo6P+AWoKJYL6k16ILm3tzFM3NjzkqY/65aGwELZ7YJPVubp9f88AuL2CI1s/HStWHqR4zRmA7LhCMO39Tpcozg6bpswlMOF2xkkGHwPxDZjPASncQLTxYd4iTAeZfvqzAfNjTukVZzvhJXHTpgXhnHnm1xoM2MFfZkO5pCblPiQ9b591Y7ujWA==; 5:9Q9h5UcGZChjCZ+xNJKIU1+djxXwOtvNH1oArL0OpRycqCck2ZBpuGStxpPOdWMJHlb5xb28HnuQDitnuNQjXtqg3FRvRyw22jx8ODtmUBZGKbAQEfeRkiknEoaabNTYYlDa9dmGwdTvPWBE/9bv0UXNztVAiXfn5Cd051wPsOA=; 24:JC1NtpBdzDhgSoNErwJE5PUq2EtyeeXsE6ghEVA0I+dTg02NfqPeBWFtkQvIYrx2mLYb05DL8kUR/IU4MLdUsLWUt1DKeBaxOzySHG3X+6I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4213; 7:fn+pepx8hiOi4f4j4EboRq6Y7zzklpReTs7NdLlHfv/sXDiCZjYBXQCxEGYENXBHjJpgQQA1IZ11+BC4EPB5ay64/OrmJUHG3tpJu4CHDs+U7hRgg3opg/cWp2EWixyx5vunbun9buyl1xlAh58u/baMOHEd0Q4jiSkG3Wo3sg5R0TJJshjS2KQm9AhUMODFQz5kjMwNwHjh4tYSwAnvp4dRnSJqRvyF9JohR4MFnK2FmKFosNqQrf/sHbXzlPyB X-MS-Office365-Filtering-Correlation-Id: 4b2ff483-16df-4686-ef22-08d5ac70c7df X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2018 18:57:49.4167 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b2ff483-16df-4686-ef22-08d5ac70c7df X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4213 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/clk/imx/clk-common.h b/drivers/clk/imx/clk-common.h index e3634a5..01550fd 100644 --- a/drivers/clk/imx/clk-common.h +++ b/drivers/clk/imx/clk-common.h @@ -13,4 +13,15 @@ static inline struct clk_hw *imx_clk_hw_fixed(const char *name, int rate) return clk_hw_register_fixed_rate(NULL, name, NULL, 0, rate); } +static inline void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count) +{ + unsigned int i; + + for (i = 0; i < count; i++) { + if (IS_ERR(clks[i])) + pr_err("i.MX clk %u: register failed with %ld\n", + i, PTR_ERR(clks[i])); + } +} + #endif /* __IMX_CLK_COMMON_H */
Add imx_check_clk_hws helper function Cc: Shawn Guo <shawnguo@kernel.org> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stephen Boyd <sboyd@kernel.org> Cc: Michael Turquette <mturquette@baylibre.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> --- drivers/clk/imx/clk-common.h | 11 +++++++++++ 1 file changed, 11 insertions(+)