Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3418479ybv; Tue, 25 Feb 2020 00:56:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxrJONkAO3b/pvx+b6opr15msDQRxzxJEOSt0gVrrduTcNk+dLIprf3NcBDTgjc0MN7AN2t X-Received: by 2002:a05:6830:1042:: with SMTP id b2mr43190019otp.306.1582621015607; Tue, 25 Feb 2020 00:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582621015; cv=none; d=google.com; s=arc-20160816; b=CUnOhra1H9UZERMITIM5NhTIKpdRcKC5BveV2NRXiFVWdzllRgHneqxNttMA2ARWB0 VUev8NQuz+0abs2HQwBW6u20lR06dW46ylBvYeuT3y4KePlIFX1meQA2zvKcZKAkhGZd +xYj2QxsptMx8wk7/EmF4jSvrkO05x7b3XHWKaFE2VGRZKRi5U2VB6+792Ipa5HRvr+q eP79hratvMkX6eu/9IXi9beloZ17nHqpXyblEZ7fwWPYD1gd5vG+LyLo/MfkPh6IrLxS 8IMHeA22zu4fTvTV/frXQZLu8hDz7CSJoauFJzx+QWhICM6f1W+rYH643L/vPZxlivPx Blrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=rewX5npISq/mxeguLRp01iGSvXVum/PLiwJgpSbjzLw=; b=Px9lxXE8k65gs9dxN3LsOVDHBlgTxob7eUEVliTliKEgJW9dK6Xm5cF/4RxLjnf02D TdUF4AzBDdPN13fKBNUpQQX5lCzUNCjlQUBRz+WtY1r36F17ID5prDG9xSsCbDP9dpW3 0qnnH3y5trlMazPNd48kK7dJLGHE1gtPYeDfFgNPOTwn/1y3E/ccL65AN+TjWg+cb1KW 3srYh1aQWaInWXWR0N47VWUgx3fxaQZZ9zTbBstEAAkxnTh/70VAjMUbchJ7IKsVtxUF NncqVSoXzgbPSPWCd0YiFOuFshpDx95ILoat0gSwYk7GU9BnaoX5l4x2GIqkdBXMpd2X jUhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si5257216ois.76.2020.02.25.00.56.43; Tue, 25 Feb 2020 00:56:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730031AbgBYIzd (ORCPT + 99 others); Tue, 25 Feb 2020 03:55:33 -0500 Received: from inva021.nxp.com ([92.121.34.21]:46070 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729867AbgBYIzc (ORCPT ); Tue, 25 Feb 2020 03:55:32 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 26AEA204ACF; Tue, 25 Feb 2020 09:55:30 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 87318212C09; Tue, 25 Feb 2020 09:55:22 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 57F83402CA; Tue, 25 Feb 2020 16:55:13 +0800 (SGT) From: Anson Huang To: mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, leonard.crestez@nxp.com, abel.vesa@nxp.com, peng.fan@nxp.com, ping.bai@nxp.com, fugang.duan@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 2/4] clk: imx8mm: A53 core clock no need to be critical Date: Tue, 25 Feb 2020 16:49:12 +0800 Message-Id: <1582620554-32689-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582620554-32689-1-git-send-email-Anson.Huang@nxp.com> References: <1582620554-32689-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'A53_CORE' is just a mux and no need to be critical, being critical will cause its parent clock always ON which does NOT make sense, to make sure CPU's hardware clock source NOT being disabled during clock tree setup, need to move the 'A53_SRC'/'A53_CORE' reparent operations to after critical clock 'ARM_CLK' setup finished. Signed-off-by: Anson Huang --- drivers/clk/imx/clk-imx8mm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 9feda4f..9256704 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -440,7 +440,7 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) hws[IMX8MM_CLK_GPU2D_DIV] = hws[IMX8MM_CLK_GPU2D_CORE]; /* CORE SEL */ - hws[IMX8MM_CLK_A53_CORE] = imx_clk_hw_mux2_flags("arm_a53_core", base + 0x9880, 24, 1, imx8mm_a53_core_sels, ARRAY_SIZE(imx8mm_a53_core_sels), CLK_IS_CRITICAL); + hws[IMX8MM_CLK_A53_CORE] = imx_clk_hw_mux2("arm_a53_core", base + 0x9880, 24, 1, imx8mm_a53_core_sels, ARRAY_SIZE(imx8mm_a53_core_sels)); /* BUS */ hws[IMX8MM_CLK_MAIN_AXI] = imx8m_clk_hw_composite_critical("main_axi", imx8mm_main_axi_sels, base + 0x8800); @@ -608,15 +608,15 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) hws[IMX8MM_CLK_DRAM_ALT_ROOT] = imx_clk_hw_fixed_factor("dram_alt_root", "dram_alt", 1, 4); hws[IMX8MM_CLK_DRAM_CORE] = imx_clk_hw_mux2_flags("dram_core_clk", base + 0x9800, 24, 1, imx8mm_dram_core_sels, ARRAY_SIZE(imx8mm_dram_core_sels), CLK_IS_CRITICAL); - clk_hw_set_parent(hws[IMX8MM_CLK_A53_SRC], hws[IMX8MM_SYS_PLL1_800M]); - clk_hw_set_parent(hws[IMX8MM_CLK_A53_CORE], hws[IMX8MM_ARM_PLL_OUT]); - hws[IMX8MM_CLK_ARM] = imx_clk_hw_cpu("arm", "arm_a53_core", hws[IMX8MM_CLK_A53_CORE]->clk, hws[IMX8MM_CLK_A53_CORE]->clk, hws[IMX8MM_ARM_PLL_OUT]->clk, hws[IMX8MM_CLK_A53_DIV]->clk); + clk_hw_set_parent(hws[IMX8MM_CLK_A53_SRC], hws[IMX8MM_SYS_PLL1_800M]); + clk_hw_set_parent(hws[IMX8MM_CLK_A53_CORE], hws[IMX8MM_ARM_PLL_OUT]); + imx_check_clk_hws(hws, IMX8MM_CLK_END); ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); -- 2.7.4