Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3418451ybv; Tue, 25 Feb 2020 00:56:52 -0800 (PST) X-Google-Smtp-Source: APXvYqy9tVLTi9ZnDpHo4ZFPUFMKdZNIYWZxxl30Kjs3E4aAE+DL8/uk0Ksnne5sE0n595q5g5l5 X-Received: by 2002:a54:410e:: with SMTP id l14mr2594697oic.42.1582621012112; Tue, 25 Feb 2020 00:56:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582621012; cv=none; d=google.com; s=arc-20160816; b=a62xTUlUOFALapLHvsX0z45TTiP2zQAH+fPRZApXidVyApqohmRj79EcH/2enzmPZ7 oNTa01fj7d59VQJZOD5dPI/vpvqeo6lZu5g9OtFrt15KWZXdYin3yifow9vKKb1KF/dw Y6s/dYYtEsdaHg28bwoKGHfGUg3r3rnXCD6QYHATz6h+WNerKKuTd4nBS4MCeWl4qF/i 7QbYrokdSSkBmUPcPmFOYeUeZyvx+UDbmhwoAnmg/SkU/DG+Mm3GtpKAXAjHhuhncDkN 63Gudc+ZsC280hAzfPvg0tQdHIb1boEO8HWWOi7rYSqC86ZP4pjy7lKOteZapXNQNU8t LeYA== 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=g/4nfKXNb6EYPuY99tX0ka8/8rf8rbOomiw/EY/KsIQ=; b=BbvcqjMvL5q5kL2cg/cNsmGQ1tjqAPjIZuuhxd8Q8JW56rXXrfl9APx7H5ZJz9/QSm RnPdcK0KdOBLHvmDgMexo5NkjS5fprphDreiUvKEHGO3FmocUms40aOAstSZYKxZ7NSS TNG7XGB/Q9vxg/us1rynkmIUCgKf5nz5B+xEBW028AFJHCCtymg+a2SGVkqT+VdRYRTl eKKIV1/Sy/MsLJlUtI8Bpa8T9JNVTD6a4uyGMlnMdEicdzd4B5EHskawhno0l3k3a8Ba x+s9mxUNWqXHW4FcLlbJRyRJn3/c6Iw5Fds0uXpCYCjmchgQ8fY4rexCe792c6tKIK8e 9i1w== 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 7si5667952oix.49.2020.02.25.00.56.40; Tue, 25 Feb 2020 00:56:52 -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 S1729898AbgBYIzf (ORCPT + 99 others); Tue, 25 Feb 2020 03:55:35 -0500 Received: from inva021.nxp.com ([92.121.34.21]:46144 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730030AbgBYIze (ORCPT ); Tue, 25 Feb 2020 03:55:34 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 952C4212C07; Tue, 25 Feb 2020 09:55:32 +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 04548212C0C; Tue, 25 Feb 2020 09:55:25 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C7F13402ED; Tue, 25 Feb 2020 16:55:15 +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 4/4] clk: imx8mq: A53 core clock no need to be critical Date: Tue, 25 Feb 2020 16:49:14 +0800 Message-Id: <1582620554-32689-4-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-imx8mq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index b81f02a..fdc68db 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -428,7 +428,7 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) hws[IMX8MQ_CLK_GPU_SHADER_DIV] = hws[IMX8MQ_CLK_GPU_SHADER]; /* CORE SEL */ - hws[IMX8MQ_CLK_A53_CORE] = imx_clk_hw_mux2_flags("arm_a53_core", base + 0x9880, 24, 1, imx8mq_a53_core_sels, ARRAY_SIZE(imx8mq_a53_core_sels), CLK_IS_CRITICAL); + hws[IMX8MQ_CLK_A53_CORE] = imx_clk_hw_mux2("arm_a53_core", base + 0x9880, 24, 1, imx8mq_a53_core_sels, ARRAY_SIZE(imx8mq_a53_core_sels)); /* BUS */ hws[IMX8MQ_CLK_MAIN_AXI] = imx8m_clk_hw_composite_critical("main_axi", imx8mq_main_axi_sels, base + 0x8800); @@ -593,15 +593,15 @@ static int imx8mq_clocks_probe(struct platform_device *pdev) hws[IMX8MQ_GPT_3M_CLK] = imx_clk_hw_fixed_factor("gpt_3m", "osc_25m", 1, 8); hws[IMX8MQ_CLK_DRAM_ALT_ROOT] = imx_clk_hw_fixed_factor("dram_alt_root", "dram_alt", 1, 4); - clk_hw_set_parent(hws[IMX8MQ_CLK_A53_SRC], hws[IMX8MQ_SYS1_PLL_800M]); - clk_hw_set_parent(hws[IMX8MQ_CLK_A53_CORE], hws[IMX8MQ_ARM_PLL_OUT]); - hws[IMX8MQ_CLK_ARM] = imx_clk_hw_cpu("arm", "arm_a53_core", hws[IMX8MQ_CLK_A53_CORE]->clk, hws[IMX8MQ_CLK_A53_CORE]->clk, hws[IMX8MQ_ARM_PLL_OUT]->clk, hws[IMX8MQ_CLK_A53_DIV]->clk); + clk_hw_set_parent(hws[IMX8MQ_CLK_A53_SRC], hws[IMX8MQ_SYS1_PLL_800M]); + clk_hw_set_parent(hws[IMX8MQ_CLK_A53_CORE], hws[IMX8MQ_ARM_PLL_OUT]); + imx_check_clk_hws(hws, IMX8MQ_CLK_END); err = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); -- 2.7.4