From patchwork Thu Mar 8 09:47:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10267367 Return-Path: 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 8EFB26016D for ; Thu, 8 Mar 2018 09:45:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C5A329837 for ; Thu, 8 Mar 2018 09:45:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70A2829839; Thu, 8 Mar 2018 09:45:17 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9326529837 for ; Thu, 8 Mar 2018 09:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=faw2sh2LrhZu2EOCJKnMriBSsFuacrdEk2jb5zyZiEw=; b=qKyPDwrJh/yvxO VDRc0CoPomlOaAF8jQ5lqTogeI4uZ/HJjU4aCTTIgq2dxuhpmN2lkufIg6t2fijDT/2q5YBLZClU3 QAXStmoWIWPPNr4qkcUJkZZxdJl0qRdAsD3eVYt5EolwRy/JSg2TWBv/n8VvUWfdXHHX2m/g7OX1f 1E3shhfO34VEu6z7nfMFW1masQFb5YGRTkwfshLJCmnlp4gEjryFB4fhsz5hgDG/JcO6PxJbNaIcs 35RJ0gjCIoBnuW94+7wE2DPHwkgZo1a0XqYDwBh8HjfAonk6sBu/OkcxlL1UKQ8djIymT2TQ4RIv5 ih3oeT8Q9wKEf83aqqHQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ets6f-0005oI-9V; Thu, 08 Mar 2018 09:45:01 +0000 Received: from mail-ve1eur03on061b.outbound.protection.outlook.com ([2a01:111:f400:fe09::61b] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ets6a-0005k1-0O for linux-arm-kernel@lists.infradead.org; Thu, 08 Mar 2018 09:44:58 +0000 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=Kzi7qtw4n0h+sYozgJlX3siYZZYboydmPyyeWMfp6gY=; b=enZU07kcbaCnfF2MiqV3ma2iECRH1Xf/KZ17/g+4HVBQ2LXhrJ+Hpmbs3i9gmeB2hvaubNoZTtpcDB2L5iwZKOdEtOHQrYzPKgPatRYJCzLxbzD3rXwnhFkkoQf5lwce6NwbKrHfNwan2paVEmoK67FBnj2jpm6vRIMGFZ1bNCs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from localhost.localdomain (92.121.68.129) by AM5PR04MB3108.eurprd04.prod.outlook.com (2603:10a6:206:c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Thu, 8 Mar 2018 09:44:39 +0000 From: Bai Ping To: sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v4 1/4] driver: clk: imx: Add CLK_IS_CRITICAL flag for busy divider and busy mux Date: Thu, 8 Mar 2018 17:47:22 +0800 Message-Id: <1520502445-22576-1-git-send-email-ping.bai@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: KL1PR06CA0060.apcprd06.prod.outlook.com (2603:1096:802:14::28) To AM5PR04MB3108.eurprd04.prod.outlook.com (2603:10a6:206:c::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a3934971-c343-4e7f-7fc6-08d584d93833 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR04MB3108; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3108; 3:0dfHBXJA3pso+jgkQ3fAdgvxpeMQ3xR7LyPMjes0ql1SbhwpJ9yaKU2KapFQuDuaMdf+oVVktZL6wJWY7oS66TI90xakjkqSnkT7hOnnLPXnuYzCU8aUxWE8Y9wk9tcp8LZ1ka3Wj5OreWniqkNZJZsgVUqsZRrQHuFrTru/CTboGyJny9YV1Q1jfxwqULgLUBXVJ4t3514B0CSahvdo2AaykzoR4mTtfFqajXHYj08AE83+omSth6l8nYM6bi6F; 25:SPukYxbIZZ46w8pr8Yt+X8s3lqfBQxbaM9eQ0Zri2UQE2oX2nPh59F0K3RcdrSKMKnmWUOhv4PhRO/XAFz9YYaj+Cym4sC+87IQvFy+UCYLQvRh+hi62Xq3rokYtrB0MfyizgQ980DPEwUiNBakMmJyqvQlD5xBRQHHM99aQRvSqVRo4yYeRHmO7c384i1d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A93KtBQf+i+2sI5Ei2c3PV+kEjOvZys3XAo4wgF7tmtORu3NMl5P5WoUxCNMpT07fRXrUFYBirVyHgm3DznHtQxbpd1fbO0I8DerQOQAIqJK/5bDXxjFo6/jZBthJ5Ql3SALxdxWRO0qNL7h1nGeM/XuSDnb7pXdlKgvrChKlEQsHf3iqc2dkEvSinGohqGU8LDsMXUudrug9t2WskBixsufWZ5igx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3002001)(3231220)(944501244)(52105095)(93006095)(93001095)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:AM5PR04MB3108; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3108; X-Forefront-PRVS: 060503E79B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(39860400002)(376002)(346002)(39380400002)(366004)(199004)(189003)(47776003)(7736002)(66066001)(6512007)(53936002)(39060400002)(3846002)(6116002)(48376002)(305945005)(6506007)(86362001)(186003)(97736004)(386003)(81166006)(26005)(16526019)(81156014)(52116002)(51416003)(316002)(50226002)(8936002)(8676002)(478600001)(16586007)(5660300001)(36756003)(50466002)(106356001)(105586002)(6666003)(25786009)(4326008)(68736007)(2906002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3108; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR04MB3108; 23:M27nJJeblOZwwPubQyVPgunuXDhG513qh0mdGRroF?= =?us-ascii?Q?0+m/tacMxTQ5EQjc6LA1Fg0TlGgpJxjQ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sG2a/peUoR9xHArZ1r1vgaKyJu/Kssp50L/DIuwq/9jnAgl9GxnsnZz1g9I9GnYtpI3WRSwy0oXvi5gfS5IoeP7LMi0+m3fJTm5aFv8osJYTOmGp7GvUZGjrLMq8ntX/PRZd4pdBZydnV7lRQjDW/3sggn5c1FWbtarxGbaG8bH0/jnFBcvp328Yl5SOs48o55ziVPQm4s0NxNU1wOwUyKLP19wI8j6WJcCvyjqGAZkTz8v/PdtnR/3u2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2018 09:44:39.6274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3934971-c343-4e7f-7fc6-08d584d93833 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180308_014456_357260_810719F4 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aisheng.dong@nxp.com, linux-imx@nxp.com, jacky.baip@gmail.com, fabio.estevam@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The busy divider and busy mux is actually used by the system critical clocks, so add 'CLK_IS_CRITICAL' to clocks registered with these two type. Signed-off-by: Bai Ping --- change from V3->v4: - fix a typo in commit log --- drivers/clk/imx/clk-busy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-busy.c b/drivers/clk/imx/clk-busy.c index 6df3389..9903652 100644 --- a/drivers/clk/imx/clk-busy.c +++ b/drivers/clk/imx/clk-busy.c @@ -101,7 +101,7 @@ struct clk *imx_clk_busy_divider(const char *name, const char *parent_name, init.name = name; init.ops = &clk_busy_divider_ops; - init.flags = CLK_SET_RATE_PARENT; + init.flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL; init.parent_names = &parent_name; init.num_parents = 1; @@ -175,7 +175,7 @@ struct clk *imx_clk_busy_mux(const char *name, void __iomem *reg, u8 shift, init.name = name; init.ops = &clk_busy_mux_ops; - init.flags = 0; + init.flags = CLK_IS_CRITICAL; init.parent_names = parent_names; init.num_parents = num_parents;