Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3418637ybv; Tue, 25 Feb 2020 00:57:08 -0800 (PST) X-Google-Smtp-Source: APXvYqy1W81AG3Wye3KK0e9+NvWx+KD5UjIRU1w/HoL7FtIvzsKnuWy7bYoGVoB0r1ROXs+wmKst X-Received: by 2002:aca:3017:: with SMTP id w23mr2543934oiw.152.1582621028129; Tue, 25 Feb 2020 00:57:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582621028; cv=none; d=google.com; s=arc-20160816; b=MgDER2Mv/aOhgTveHfJ5yOS9eKHyHTSwbqx3Cqwri6xMYQ8MAfnaxttdPWUN1bvLZi dX6KkMOic0zT/zP2DW7f4Fk8w0uQ99tmZ5WFV03/wYneZPYf8y9l1Td+Bn9UQwFmDrpz VJ/lOGEcxih20VVnf4wfOZ+Be6ZcS7o44FNkmSi+LAWdGdlltM3SO8SmH0QbVrzh/8FI eCRHtaUauYjvraNrIdpYTt+UCv3GqPOtbVn4ZVRSFnvD7M6j60CbWOrBTciME4HHl6ht 4PDR+pKTKoW2sWm3P1bQzoPmkPM9VMhX9ZdbOTc9irq8QptH7EFdzh1NhhKlo3eSoDa6 gwew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=MhbuAIsgHQZJ4ga/tGK2+zJoVffLdsFsc0jpDQD5by4=; b=T3RNJcYCQkF8eZHLyt+OarB64JcC+gqZJCA3znk7yJyv/MnHnP98UWS3lkcdjHvlI/ 0JeQkk+QmoomQQEg64hXdabtlPcdzJDNMl/q6tdhr0tHKsdcE8VsdOeFeEapv5EiX3o4 DN1rXl/Jqhky1DsDcRtkuK0OKWg813nc+LIM9HATNTYTnJDw+YOgcd2wp9DrBjvy0vk/ 3RKm4qUS4/t5cBaEPhp18nkfwZLzxwqnr9IOCvXbBH2T1h7ehA6d/f6nA5tCm1AQOSAW xPSCv5av7V0GPKRhCUlJS7S0ejUAAqUkim7v9Wce+l1t5f8UjRhChZwOJcBTArYiG4X1 hAOQ== 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 u25si5448211oic.160.2020.02.25.00.56.56; Tue, 25 Feb 2020 00:57:08 -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 S1730017AbgBYIzb (ORCPT + 99 others); Tue, 25 Feb 2020 03:55:31 -0500 Received: from inva020.nxp.com ([92.121.34.13]:43778 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729557AbgBYIza (ORCPT ); Tue, 25 Feb 2020 03:55:30 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 68C081B35C6; Tue, 25 Feb 2020 09:55:28 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D294D1B35AE; Tue, 25 Feb 2020 09:55:20 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1FCDF402B3; Tue, 25 Feb 2020 16:55:12 +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 1/4] clk: imx8mn: A53 core clock no need to be critical Date: Tue, 25 Feb 2020 16:49:11 +0800 Message-Id: <1582620554-32689-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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-imx8mn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 83618af..0bc7070 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -428,7 +428,7 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) hws[IMX8MN_CLK_GPU_SHADER_DIV] = hws[IMX8MN_CLK_GPU_SHADER]; /* CORE SEL */ - hws[IMX8MN_CLK_A53_CORE] = imx_clk_hw_mux2_flags("arm_a53_core", base + 0x9880, 24, 1, imx8mn_a53_core_sels, ARRAY_SIZE(imx8mn_a53_core_sels), CLK_IS_CRITICAL); + hws[IMX8MN_CLK_A53_CORE] = imx_clk_hw_mux2("arm_a53_core", base + 0x9880, 24, 1, imx8mn_a53_core_sels, ARRAY_SIZE(imx8mn_a53_core_sels)); /* BUS */ hws[IMX8MN_CLK_MAIN_AXI] = imx8m_clk_hw_composite_critical("main_axi", imx8mn_main_axi_sels, base + 0x8800); @@ -559,15 +559,15 @@ static int imx8mn_clocks_probe(struct platform_device *pdev) hws[IMX8MN_CLK_DRAM_ALT_ROOT] = imx_clk_hw_fixed_factor("dram_alt_root", "dram_alt", 1, 4); - clk_hw_set_parent(hws[IMX8MN_CLK_A53_SRC], hws[IMX8MN_SYS_PLL1_800M]); - clk_hw_set_parent(hws[IMX8MN_CLK_A53_CORE], hws[IMX8MN_ARM_PLL_OUT]); - hws[IMX8MN_CLK_ARM] = imx_clk_hw_cpu("arm", "arm_a53_core", hws[IMX8MN_CLK_A53_CORE]->clk, hws[IMX8MN_CLK_A53_CORE]->clk, hws[IMX8MN_ARM_PLL_OUT]->clk, hws[IMX8MN_CLK_A53_DIV]->clk); + clk_hw_set_parent(hws[IMX8MN_CLK_A53_SRC], hws[IMX8MN_SYS_PLL1_800M]); + clk_hw_set_parent(hws[IMX8MN_CLK_A53_CORE], hws[IMX8MN_ARM_PLL_OUT]); + imx_check_clk_hws(hws, IMX8MN_CLK_END); ret = of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); -- 2.7.4