From patchwork Mon Mar 12 09:29:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10275719 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 6D3BB60467 for ; Mon, 12 Mar 2018 09:27:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7197628B10 for ; Mon, 12 Mar 2018 09:27:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 653FE28CCA; Mon, 12 Mar 2018 09:27:05 +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 0D3D628CB4 for ; Mon, 12 Mar 2018 09:27:04 +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=X+bP2iuV8s0Vfj45mrhYFgVlHdXpt993YdDMLPnYJEs=; b=I4pYrS7UehZAl+ to0vXZ4+cYihLjuTdSK/qSk2zpdIqAYUkK6QZm1rOLLAvyoRbbvovj0ztZzQnyw904I1061uO9/gi QlgFFm61YQ0TfSy7zao81W0qywJ5RbyX3Uj4zXlNmE3+fjZ5YBIb2VDiu0PzoEZ6XvIF/vj+S5Kg1 sOfGEV9eYochQujCtOJyZBxeDJ4MjF5WHNLA2faF1ZzyLFL8iBFJq6r/HKO0eMu1SflRJEEC0JJkZ rFT3fX3ILMMwllI+2MdGurdv/i7T/W0DfxtcYz3i94rf885dyftOmPsBEPYsmh1YkXoHlr+bSafjw 1bT9vT3E3uvKBCNGnFjA==; 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 1evJjL-0001tS-Az; Mon, 12 Mar 2018 09:26:55 +0000 Received: from mail-eopbgr10041.outbound.protection.outlook.com ([40.107.1.41] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1evJjF-0001qC-T8 for linux-arm-kernel@lists.infradead.org; Mon, 12 Mar 2018 09:26:52 +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=zvM4bwAhrlWcQZKMCtKexk7qv+IzJUHSf7w0x68scEU=; b=bZavUdi+5aG+kkKQhl9mIMX/GUCDRo+LxX7WeQEs2iPJb17T4R4DxNw5/7va0C63pb1mOuaJ+tSBXYSXB+wkEOdK+zeJC/WYzE+hH4gi41cl/LPDk67Ufltr2Y3aRom3DXm/D7LcvkALB9BPvftR4PIc5CYMnKChtdku0m5NYJM= 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.567.14; Mon, 12 Mar 2018 09:26:30 +0000 From: Bai Ping To: sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v5 1/4] clk: imx: Add CLK_IS_CRITICAL flag for busy divider and busy mux Date: Mon, 12 Mar 2018 17:29:14 +0800 Message-Id: <1520846957-22348-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: HK2PR02CA0189.apcprd02.prod.outlook.com (2603:1096:201:21::25) 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: e79971e0-870b-432d-3a98-08d587fb59f8 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:glW0eJpfv6G8h7LY9DlSWn6//hm163UrdoacuGw7HpCP9gTh6xAf1DKMXsWFNFw874i8qw9Q4WJrtz9G1DedrLliVY21XzZYMWJ1E2e//TuP4TXtg5wHugW1fqBUd/uryUF7rvKl8ez1fLYRT34lfwP96U/dIDgVAds23lm4/m6yAuaATfnXwVkwGn7bM7L0IV7O+/PL8Hj4FInH5sarn+3MjK4Yxt+w9LiDUxkHmc6EDlKT4zRTYEiYLOK9Rn8b; 25:1KCPlxtwt3Iq6u7caC+N1J7On5GWfwTXyj9eu/c7wPVMtxEewOwqyR3fGrKS1zJ3q2PZt0Smn3zFSAQNtBo29MiesWduv5vs9j7837+Jri+Sbv8gQK8C4S8ZMT1ELKHlfxydAYAddFqeK5LJcQZXgUFzCyCRqwQABvxhTwBlkncBG619ibw+ewtXJVxPo42O/cSw8aYy5cig952NIaS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eq0OHaPj4J6K7anDymlZgsW7JKiXDjXFebsAqPLzZExWffa979XzpnRwa0z40fy5OE698peyVqyDkOBljCjiwv/T3HoQWlWSoBR/8R7ZAiHIQxgJ2bb+K82hvHv069KbCHqRkuUpyBkdlpLVuvjCDodpKzg5fgMkNPW7EX48R4D53bsCOdwygNQzpG0hrGSb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:AM5PR04MB3108; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3108; X-Forefront-PRVS: 06098A2863 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39860400002)(376002)(39380400002)(346002)(396003)(366004)(189003)(199004)(105586002)(66066001)(6512007)(26005)(386003)(8936002)(6666003)(39060400002)(53936002)(47776003)(2906002)(51416003)(50226002)(86362001)(52116002)(316002)(6506007)(16526019)(6486002)(97736004)(186003)(106356001)(81156014)(7736002)(5660300001)(8676002)(4326008)(16586007)(36756003)(81166006)(25786009)(50466002)(6116002)(478600001)(3846002)(68736007)(305945005)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3108; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:g59Y96BEGe5r4ERm85/H3FguzfW1H+LpfYWr2QwC9?= =?us-ascii?Q?69tJ93bSeLGbc38IEWAT/5YgIa9klOY2ib/lsSB6sWcX2aohZZ3PVdLBRkrm?= =?us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HK8c/eZWAKI2UD1u6fiIWF?= =?us-ascii?Q?UVGt/3kgYOA4qBqDGe92b3DizepcoKvmJzNK+Cn7NSww0erMP6zxljs44O9z?= =?us-ascii?Q?Pa0J6dSNkXhAdijo/oGicqFyvju?= X-Microsoft-Antispam-Message-Info: /KHWxMC+47EgressL+fWU/GpdeHLYqIPjIln6ORl3j35W+GI3YruwPFdEi014xJ4L1j+J0TPKW2yC2/1KX/sx7g1sG5GwLqNTgsJbOf6diVpMYVuwx2EV179Z6wgMEDKsa84EvCjjZgQOiZTW5eMbZwfndf1WLt7rUGM1+wUM2jVMiaQ5ZzWzKzxAN95Td6r X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3108; 6:sDdKqckvAK1htUPqTU7Wnk6kyu73GGWIyQbyhkGaM7Culatk9MMPudxqNyOjhFXO03ja1fQ9c5miU2R7ar9LpFm2hHZ6joGB6E2lzkHe4r+5nOUvJYP0unoTEQMgWIqUpvvqzy+ApA59y79VJl72fCjgptovTGkLUFxC3oDWfS1gPB4nbb2SldIqhfTW2la5Lgyntwcfei4SYEnocjw46a3z++raQsCtjhncDvRHmBsO0bkswWlkab/9HAFpjNxd6OtcgcqNDAL2b2DwFkxaRIW7JsfhN1rokBYWmrSpf3FfuxyxXZxRdzf6e8ngZ1sfdqux/E+7CRpsBGtYfuX0iAuiYK8FlE3swK9K+/iezJA=; 5:0o6l1x0OxzG5U5dRJltc+i95VwfpRtBbDU+pM5odLLhzCMidkg8WLvazC4iPl5xRtCE2FB3diCGqkGco2kGIbZU5M3YaMzIJyVg56/eMH2EVG8ZqpMr7CiJgdS3l7pyULc5L6KxJGq/JUPssDzxLA6A4yZxyWfOrkNmNIuJo+ZI=; 24:S8ODgwCmUnbDnoIUhQKdNaj7LXQBkgezqad7EIPskvK54yLUReJUKfOSfVEgu6jjU1WduHevjx9/Ue4vZ3+Q8cFAK5k786kUsR27tgYnAHo=; 7:BlBiOWPxQD3QzACr8YiqvFdrg7/MAqzRP/qBYegbDa+iteTa9CegDorJs8tA68waU/t1l0OYseF/v/YVyNeS0e6DPjZlPFIEv+PSLPkpC6l8OMr8VblgbPsGCmfHRbhyehryZjKNfGdQ13fExq/kZdxS7OgsHoVCn2+kU2Wr54dNekkfOb34brpaY12mHsyFxZmD0IMD21/Fu/rpFpPrb5QXh90WfsBM7OFTYKek/T8/6QBKtXx63S/fEKuVVnkx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2018 09:26:30.6586 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e79971e0-870b-432d-3a98-08d587fb59f8 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-20180312_022650_301909_45866043 X-CRM114-Status: GOOD ( 10.62 ) 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 Acked-by: Dong Aisheng --- change from V3->v4: - fix a typo in commit log change from v4->v5: - optimize the commit subject --- 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;