From patchwork Tue Mar 20 02:24:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10295927 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 34A2360385 for ; Tue, 20 Mar 2018 02:21:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 254D229593 for ; Tue, 20 Mar 2018 02:21:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23F05295BF; Tue, 20 Mar 2018 02:21:55 +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 A822F295BB for ; Tue, 20 Mar 2018 02:21:54 +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/y3HUGdX2O/pLN4wExey6Mzjl/oD8zklaJlcd3X1/g=; b=qjnBzKs4bJKG56 3UCwDxEbgb8/e9rtmbEgyvhI298/4upa2leWAK55V8npXepxHcm0NuHtcBEKHQEg403IS8HIeXaxa WzbQCfi05IQVR6S5B56vHgYmY0jF/FGPkn866KL+HXlfAaq+NQ2/VxR5HuE3yz7fR7hqDypNciH6L LQovnRbwM1qmQfmd6biBBU6zR9sznBxEqG1fU9di8l1lu3T9jY+pQZu2Z7yVRq1M1b7LKHRx/hGYZ CLAb9bQm/K31n+4S/AoeQEzwF8ScY8/0SeGyaj8mVq7cHSzIQEpwAgSdDkPtTmOou9FyiHe8bC1Mn RhXn47ZX79WahYo4gT4w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ey6uJ-0007F5-Qy; Tue, 20 Mar 2018 02:21:47 +0000 Received: from mail-he1eur01on0054.outbound.protection.outlook.com ([104.47.0.54] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ey6uF-0007D9-JI for linux-arm-kernel@lists.infradead.org; Tue, 20 Mar 2018 02:21:45 +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=UQje51+/KHEVflCb1BX5VYeJaf141dm7hJTDpgYoOxc=; b=inB0DT/ySm7gLlyxoP7WTzTz2NogcoKgOfSS2Z4aDVdwEV99z0Y0izPEeDW4yjsQsh5Lir+1YmSaVU1w2s/TsUG5oFc0XL0hbNEloUCWnTz/6cRJNJX8EJbqollwF1JXSKI2WNuJKERTibxWvXBTdJGHzwpxOM2OedheJ1XoLvQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from localhost.localdomain (92.121.68.129) by AM5PR04MB3106.eurprd04.prod.outlook.com (2603:10a6:206:c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Tue, 20 Mar 2018 02:21:22 +0000 From: Bai Ping To: sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v6 1/4] clk: imx: Add CLK_IS_CRITICAL flag for busy divider and busy mux Date: Tue, 20 Mar 2018 10:24:01 +0800 Message-Id: <1521512644-25265-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: PS1PR0401CA0057.apcprd04.prod.outlook.com (2603:1096:803::25) To AM5PR04MB3106.eurprd04.prod.outlook.com (2603:10a6:206:c::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 82c4031e-047a-4a95-2fb1-08d58e09494c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR04MB3106; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3106; 3:oBeX1fcnpSS2ncFurlwdX52qFuD9BkwbfzBP8DkFKblvotiCkgV7obsl0peS9VhfqsPqGqMX8/JRi8dV0xHFdcaxzuka/LZrllHqyZr598S/7sECbIvDwcmaVuXxbwva5YFa5rmLHV/bWl7N+4K1Ll6T9VVY4oTWu95JFBMNj3p32K95Rxn5uwGBm5UUC2RSaT3ZtCzI+dOClm8bFIQQYxZ4GwLy9QWR2rRAD3iBqckmXjl1I9fMhDmbvzES9XUC; 25:o72EqL6rZjVnRnzZbVNeUixbHkEy3PxM4B1kIIxTdfi9lM9wU2djCogRGsJufB79lLA5OxSRfNw+NZM550FjQFBOFIdxZ5UTk7fsXK+4hIZwbRd44afnCOPXtrOExNNhjVgxRpHEJoubCZ5ORNg6o0DHH4ddXf9GuWV9oVCVu8xcBiF9sdBOCvxFeyQ6WbvLnLLh4f1xVm/2eDTmXIR8A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Ryklr/gwU09B0AZ82sLWRBTke0h28ZSonhVfTQ6B5sh+biC/qiMnncWi6WEcwczDJDyPfBP54oL/QnSvYOG+l4gXyGjfcNUNoiydL9SEwiDF4g49q0Keh4rdKJ4FuACvoKiY4OfDvSQc7URiWHJtx1ORShbJQkHWhQk6LoVb9NdhAqrlj+i32w2qwIG0gMmDg3V9nU8ce10njdWy 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)(5005006)(8121501046)(10201501046)(3231221)(944501305)(52105095)(93006095)(93001095)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM5PR04MB3106; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3106; X-Forefront-PRVS: 061725F016 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6069001)(376002)(346002)(366004)(396003)(39380400002)(39860400002)(199004)(189003)(81156014)(4326008)(52116002)(25786009)(51416003)(53936002)(81166006)(105586002)(186003)(16526019)(478600001)(305945005)(6506007)(8676002)(6486002)(6666003)(2906002)(6116002)(7736002)(106356001)(3846002)(26005)(386003)(36756003)(66066001)(39060400002)(8936002)(68736007)(16586007)(50466002)(48376002)(47776003)(97736004)(6512007)(86362001)(316002)(5660300001)(50226002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3106; 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; AM5PR04MB3106; 23:INmngHGU9hpBcd4PdyevQoBJvabDKVNpHj5xmXFuI?= =?us-ascii?Q?91Ngjei9k7/ye7v9qe+j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pK0GJUVPCAt78jm6f5+L3uzcWZkiXTV3rX3sMKrWdGFZ+wSs54hBq3o=; 24:hKHA5mMmOBoGgg2W2atXcH5tm0XpEsgQ5evDSkrM84Nz9rN6IsqjbmYT6+QSFp6AOe0gufqy5MZYoxjdZHbr4QarQ8FvNPBbc3pjp83j0ow=; 7:+jSPoGclnnL6JJDYVzGdAS+IVPRVWvlBF/tGDeT+J2tclY9HEexNoN6uBtSDVPFcESqPmZkhViPf3K+dDXrOhVLyk2PYd9M+6cEU48aekaou9zkf6UnFVsfgDeHBwTn/ME2JEEje9d4QPUJHnNxW3z3I0LEU7PNwAcn5BBXojMCXt/okMBtt1YFZ4WP+8rjhi17bbnj/WGx/cCHNEZ5nLHnsfN450RcLOXJctOjiq90Yi63caM/ZsAQGZjkLOkue SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2018 02:21:22.4467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82c4031e-047a-4a95-2fb1-08d58e09494c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3106 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180319_192143_901033_B2CA9CEF X-CRM114-Status: GOOD ( 11.61 ) 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 change from v5->v6: - no change --- 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;