From patchwork Wed Feb 7 02:00:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10204525 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 7D9CB6020F for ; Wed, 7 Feb 2018 01:58:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D01F28D7E for ; Wed, 7 Feb 2018 01:58:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 615CB28D9F; Wed, 7 Feb 2018 01:58:33 +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=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 F117228D7E for ; Wed, 7 Feb 2018 01:58:32 +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=LKjZhOsVR/3tqVMZ9J9qr/vlWSlzgwN1bZtW7guynPk=; b=PW+ZeJ+xjqwj2+ kmhm+lnqHpyybjicSbU+uppk+nez9sdzU4KqpWaD/mWpkXkghLdBzJob6QVKNQoV30Njuxp4HrSJp I2kUadIDovQgFbZqG9GZTEiOYOV8iELKqkMXuyPoRCH5nMxZ+lZwROyfZxlsgn8Yd2t4imODHpu8+ cOLCGfIJqjzdAofBNQOIvaCVsIqNjUeLUUZ4SkNNfok5csxq03Ei8Z3svyOug13odY9vWpR9T48eq qJ2uXjmtK6FBBrXV/VXTrWuwhCDhCUSx5XH54LIAgVrvJ33dTOE1kcFkih9CuzjflwiYDR8cwCbvA w9TBkKTHRIpvh9hMPGPQ==; 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 1ejF0G-0000Qx-Qe; Wed, 07 Feb 2018 01:58:28 +0000 Received: from mail-he1eur01on0624.outbound.protection.outlook.com ([2a01:111:f400:fe1e::624] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejF0D-0000PX-1f for linux-arm-kernel@lists.infradead.org; Wed, 07 Feb 2018 01:58:27 +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=iQmhr0xgtjKOKscPXKRbB8vENIwO1hFMHymeuADrQpI=; b=qWhbad4z296C1h+xrNneQlhFWjqPgnJvinTpQ/Lnyue8r7ssTQHLXbnzTWD1OBdgGaT6tu9yIr9OGCjGvRccgj/L56NYK8eHJrqv2/wygrEY+ve7Lioh9iCArzuiuQALkxCPhL4DoWzGD74ZxJ1K3Mu7wr4Ajlzwka/Cqjarncg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from localhost.localdomain (92.121.68.129) by DB6PR04MB3109.eurprd04.prod.outlook.com (2603:10a6:6:c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Wed, 7 Feb 2018 01:58:03 +0000 From: Bai Ping To: sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v3 1/4] driver: clk: imx: Add CLK_IS_CRITICAL flag for busy diviver and busy mux Date: Wed, 7 Feb 2018 10:00:16 +0800 Message-Id: <1517968819-12869-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: HK2PR02CA0217.apcprd02.prod.outlook.com (2603:1096:201:20::29) To DB6PR04MB3109.eurprd04.prod.outlook.com (2603:10a6:6:c::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 766efc2d-353c-4295-fe55-08d56dce3baa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:DB6PR04MB3109; X-Microsoft-Exchange-Diagnostics: 1; DB6PR04MB3109; 3:fnLq9d1vnoGXRxWjPFsVLX7OlwAPdYpXCCDK+MaMjH9vwoXMMD/EpG9PP7V2aSwJLo8yrSQ13RXxX1zBOs31r7SbsIHVRl4fN+wqbN1dXXlplbRhtzgf9ceAJgKYKij4XY1i1l7zJS42fNBsFFM9M/Nel46joK7U5iHNwAU6ieP7Dr5d+C5HP56apeefP6nPixZE4IOr69RzuNWkoN2L2pJozKnG7F9sRIkpjLNtU/XfOOs9DxkMLFWrAUuqggEC; 25:IrW7b6s+ZmKhai+1h8AL6SAWJAUlbqM8RlcAily8brOBCsbpVGd9XtoT07mn/LspDTfCAmI3IhyiC+4CbkVbXn68wNAh+G4SHetGRXN1h3qsEtowhA+CmlHTfjiIoS1Zgd9f6allcqOtGPk4hp5ft8hyxJx+OHgZigJD6LSUe98Uk4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38fUYgiIKFiKTFZbihti4FDyf11Z0D2GIKjRhf/tJNNTCCXDFJsFIBuNr5mshLJH8W7GSbEsYodD1QC14oXWKaHKM00askwVl256yeIvO+IJ7IfaelcwncG6dL6KtFZ/HzBQYya0o7cs7t+bq+JOrk1fvBCIRx1lfsz7E62uyyT+H9gGz+hYUOOXPO3zM870Dd3I6o2RJB9S7eoUIUicbNxR6+u946CvaZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:DB6PR04MB3109; BCL:0; PCL:0; RULEID:; SRVR:DB6PR04MB3109; X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(346002)(396003)(39380400002)(376002)(39860400002)(189003)(199004)(66066001)(25786009)(5660300001)(53936002)(39060400002)(6666003)(106356001)(4326008)(97736004)(386003)(50466002)(52116002)(6512007)(6506007)(51416003)(86362001)(478600001)(305945005)(48376002)(68736007)(50226002)(81156014)(8676002)(81166006)(7736002)(36756003)(105586002)(3846002)(6116002)(8936002)(6486002)(2906002)(16526019)(26005)(186003)(47776003)(316002)(16586007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR04MB3109; 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; DB6PR04MB3109; 23:+mpN3wmbf07mamPHUTsawDFx1MHoe0eX2n7RdseGV?= =?us-ascii?Q?daNrqjVTuq3/Z+DTIxzOeUdFjk+CvEwzPy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RFCRW4fOE0thY3fcEAUdM0ZnHZd SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2018 01:58:03.5638 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 766efc2d-353c-4295-fe55-08d56dce3baa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3109 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 --- 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;