Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1456903rwi; Thu, 27 Oct 2022 16:22:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lJ9kJlytHX4a9GGxTTxveDCtPPp303per1is0f1h39bYe7gsCUz0o/8xmtWEEhkg/mVZI X-Received: by 2002:a05:6402:5ca:b0:445:c80a:3c2 with SMTP id n10-20020a05640205ca00b00445c80a03c2mr47823663edx.247.1666912972047; Thu, 27 Oct 2022 16:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666912972; cv=none; d=google.com; s=arc-20160816; b=FlI0Tz9YluvXXPl84icMo20IQui0VdgjFDfo8j0fnErVFKl0oyy8HWZoyFpPs10Qxz lhmeq/eqYijuD2vvtclckOc/zL2TtNIZkRWKQ6H6kq+HRFoJ7SUsez3S8cR5pXq+JwIS LfN/aqbVmgCSHc+qCnDMDNEblLDZxrOPNZ4CYvAu/h0/iGkmnqC+Gt1F9PyPAQBAE/Wr u93xMCO+mWmHzwa2bQuGDle5C8ee/q1dq23I689rNrU2rnUH/X59fh06DIDnX50V2uhg TABYkkw7rskFK5kRzhnRsCZh52BgdwTRIbQjK+E7Webg0L7WoZD6PlQxPgga8QlAfa2H 2izQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=ZeYKSQsRbjJai7ZBOwE2Nl6O8uEBHwU804aaVaOe6mE=; b=MhhKMUaxkdX0vGvcgwcpJo+yDKsOeqxSqKNELC6KafjYE2UjYkEAvilO2PFxSmr+KT cxAV9FqjCGQANde8+HgEMfabks1rn9rdPfQMUoqVdt5Vpml2H2Cgw/rXEDcXDRj2AM0+ 6Q3BfskMQmWrsmxXt0ZHKfeKlwOoD34zxvPRF/WdW2pGitXYHfINqug+yt83MPYoTly7 2UypIFdw3OVZJaxW7pHom0gp3F8kcX/dkYXRfVf5cCcUCJVUMXV8XjkxojURuAisdp4O /dbOMGLczXF4nNsyYUdQyCQHmnj/biqqKKVNk0cPFSggJMvsAEowXr92VCmKdDAbzXNn sPnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SMdBv5Hy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr16-20020a1709073f9000b00780837381d8si3115361ejc.591.2022.10.27.16.22.22; Thu, 27 Oct 2022 16:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SMdBv5Hy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235370AbiJ0XFf (ORCPT + 99 others); Thu, 27 Oct 2022 19:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235028AbiJ0XFd (ORCPT ); Thu, 27 Oct 2022 19:05:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 384185A2E1; Thu, 27 Oct 2022 16:05:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C941F6258A; Thu, 27 Oct 2022 23:05:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2288CC433D7; Thu, 27 Oct 2022 23:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666911931; bh=kMiSzIp8QDq8Q/JDWrd3tsQMI+u2ReRt1KdGThVt6sM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=SMdBv5HyjHZ/qmlwreA2kqytkytGSznE9Wx00Go/Yv25WmZwSIMX8mN7V44PGH/Cq C1OYefQsJQpJCzC5ON9S3Huif7Z7rhHRq6zuSdPSoXSrGut1Y0jewOa6p0GaM1GKtO vb7FK28RxGReFh/5aelUUKD3i4JSdQYwRnnyd/TgKm9/4ZXq8ndoDImiR9bqi0pLXW NEYxl0jOlHp1uOAzhZHMxc9mCI7NTc4Dkzvn+Xg0NlQHd4fHm8HdRiNGm5BEiIJUE4 C+XIoEUTV8/+mBwZtCOlSm/0xEncEKobekqLofgFMaH90WpYg3Gqu7dSV8WWtEjO48 37q5SJy7a05ug== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221027101159.942843-7-peng.fan@oss.nxp.com> References: <20221027101159.942843-1-peng.fan@oss.nxp.com> <20221027101159.942843-7-peng.fan@oss.nxp.com> Subject: Re: [PATCH 6/6] clk: imx93: keep sys ctr clock always on From: Stephen Boyd Cc: linux-imx@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jacky Bai , Peng Fan To: Peng Fan (OSS) , abel.vesa@linaro.org, abelvesa@kernel.org, festevam@gmail.com, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Date: Thu, 27 Oct 2022 16:05:29 -0700 User-Agent: alot/0.10 Message-Id: <20221027230531.2288CC433D7@smtp.kernel.org> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Peng Fan (OSS) (2022-10-27 03:11:59) > From: Jacky Bai >=20 > Keep sys ctr clock always on to make sure its register > can be accessed for cpuidle. >=20 > Reviewed-by: Peng Fan > Signed-off-by: Jacky Bai > Signed-off-by: Peng Fan > --- > drivers/clk/imx/clk-imx93.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c > index 74e8d810db7f..91db356564c1 100644 > --- a/drivers/clk/imx/clk-imx93.c > +++ b/drivers/clk/imx/clk-imx93.c > @@ -238,7 +238,7 @@ static const struct imx93_clk_ccgr { > { IMX93_CLK_HSIO_32K_GATE, "hsio_32k", "osc_32k", = 0x9dc0, }, > { IMX93_CLK_ENET1_GATE, "enet1", "wakeup_axi_root"= , 0x9e00, }, > { IMX93_CLK_ENET_QOS_GATE, "enet_qos", "wakeup_axi_root"= , 0x9e40, }, > - { IMX93_CLK_SYS_CNT_GATE, "sys_cnt", "osc_24m", = 0x9e80, }, > + { IMX93_CLK_SYS_CNT_GATE, "sys_cnt", "osc_24m", = 0x9e80, CLK_IS_CRITICAL}, Please add a comment like /* Critical because clk accessed during CPU idle */ > { IMX93_CLK_TSTMR1_GATE, "tstmr1", "bus_aon_root", = 0x9ec0, }, > { IMX93_CLK_TSTMR2_GATE, "tstmr2", "bus_wakeup_root"= , 0x9f00, }, > { IMX93_CLK_TMC_GATE, "tmc", "osc_24m", = 0x9f40, },