Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3419258ybv; Tue, 25 Feb 2020 00:58:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyO2DqB4kwaXrql98y3kGlR25skZsRqgMXJw3pB+ChNu4UanjBbT1LpXyh+QdXmxvKtGTMT X-Received: by 2002:a9d:7f98:: with SMTP id t24mr45727834otp.338.1582621080045; Tue, 25 Feb 2020 00:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582621080; cv=none; d=google.com; s=arc-20160816; b=E8VmgixAUGqwRAqH3ndjGCzOIU46kVMkye6FgUX+ifrPTgEjliCWS5LhHWR6Cfrz7i sdJKKtCNqq/bzzn/Gl7uZPQv5H2eyd5mC55QmwTyoxWJpoyuLuwn9u2oMBk4WCAuBNYs GcmXsE+XtEBA9b1NXWOACXGGb0hqMZliI5dJsU9woV9dUZU7SNwKixjV2cpyNOiwPbMf JcZo6au4P5REX6TzwchSrCfOP+iSIXpRxxlB+2sGPAkLf+LNmMwBcB+B3Z1pUOcveRB4 bzUwGZILb+Qcg8A4lWrgSYzYezbeBzZ3C5n3mPy2j0TWVls5mcgfQKEI3DXa+NkHYlxD 955A== 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=GeVJMrWOeOR357zFqhOPS+Uq4vUPSTLzTK9FIGxGZfM=; b=Kigby4TjS0BY2tYXLydCro84RhMZ1xdLAXunWtZT7ul/2yY2UYl649GlQT/n6CBSgr 2smx5tY1Or5Y+tPqw78zUIvy1DOZtIzomPMO/y/Lfvwbu5EslIew9JcqolQGak6HJyJQ 9FEtY4EBLcuIasm7THSSIUMLWWR5epBymsCYT86KeODT9wEqQFfLhwhfytXcHoiVRFum 4+INLxKi6tVfPy8MN//tW5Byjxiu/l68S201EedKzGHU5o9J2ds645Pz/5bY9i7eL3wU mxmIkWxPTihnF1fs9RaTnsc+OvVgh+0HkcdcC9+QOoCGjx6GQEt1BqLWm2gLNpcIBV+y PzdQ== 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 a22si7446926otp.84.2020.02.25.00.57.47; Tue, 25 Feb 2020 00:58:00 -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 S1730055AbgBYIzk (ORCPT + 99 others); Tue, 25 Feb 2020 03:55:40 -0500 Received: from inva020.nxp.com ([92.121.34.13]:43856 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729557AbgBYIzc (ORCPT ); Tue, 25 Feb 2020 03:55:32 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5DBFB1B35BD; Tue, 25 Feb 2020 09:55:31 +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 C00531B35C4; Tue, 25 Feb 2020 09:55:23 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 90728402DE; Tue, 25 Feb 2020 16:55:14 +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 3/4] clk: imx8mp: A53 core clock no need to be critical Date: Tue, 25 Feb 2020 16:49:13 +0800 Message-Id: <1582620554-32689-3-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-imx8mp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 7d558d6..41469e2 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -557,7 +557,7 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_MEDIA_ISP_DIV] = imx_clk_hw_divider2("media_isp_div", "media_isp_cg", ccm_base + 0x8400, 0, 3); /* CORE SEL */ - hws[IMX8MP_CLK_A53_CORE] = imx_clk_hw_mux2_flags("arm_a53_core", ccm_base + 0x9880, 24, 1, imx8mp_a53_core_sels, ARRAY_SIZE(imx8mp_a53_core_sels), CLK_IS_CRITICAL); + hws[IMX8MP_CLK_A53_CORE] = imx_clk_hw_mux2("arm_a53_core", ccm_base + 0x9880, 24, 1, imx8mp_a53_core_sels, ARRAY_SIZE(imx8mp_a53_core_sels)); hws[IMX8MP_CLK_MAIN_AXI] = imx8m_clk_hw_composite_critical("main_axi", imx8mp_main_axi_sels, ccm_base + 0x8800); hws[IMX8MP_CLK_ENET_AXI] = imx8m_clk_hw_composite("enet_axi", imx8mp_enet_axi_sels, ccm_base + 0x8880); @@ -729,15 +729,15 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_VPU_ROOT] = imx_clk_hw_gate4("vpu_root_clk", "vpu_bus", ccm_base + 0x4630, 0); hws[IMX8MP_CLK_AUDIO_ROOT] = imx_clk_hw_gate4("audio_root_clk", "ipg_root", ccm_base + 0x4650, 0); - clk_hw_set_parent(hws[IMX8MP_CLK_A53_SRC], hws[IMX8MP_SYS_PLL1_800M]); - clk_hw_set_parent(hws[IMX8MP_CLK_A53_CORE], hws[IMX8MP_ARM_PLL_OUT]); - hws[IMX8MP_CLK_ARM] = imx_clk_hw_cpu("arm", "arm_a53_core", hws[IMX8MP_CLK_A53_CORE]->clk, hws[IMX8MP_CLK_A53_CORE]->clk, hws[IMX8MP_ARM_PLL_OUT]->clk, hws[IMX8MP_CLK_A53_DIV]->clk); + clk_hw_set_parent(hws[IMX8MP_CLK_A53_SRC], hws[IMX8MP_SYS_PLL1_800M]); + clk_hw_set_parent(hws[IMX8MP_CLK_A53_CORE], hws[IMX8MP_ARM_PLL_OUT]); + imx_check_clk_hws(hws, IMX8MP_CLK_END); of_clk_add_hw_provider(np, of_clk_hw_onecell_get, clk_hw_data); -- 2.7.4