From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4F16C2BBC7 for ; Tue, 14 Apr 2020 13:36:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BBAF920768 for ; Tue, 14 Apr 2020 13:36:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DjeUS+CD"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="skTTgN+r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BBAF920768 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6qgt2oJqi0JVMpQmZ/0CeiW3PxuCxqr4HzJCM1ecijo=; b=DjeUS+CDhj1dMz z6qu36Qtdm8E5t2kTjFh1U6FfgNO5dL7ZD8kRlJSik1Ou7KpRoTStAYSIw/DFR8rOARP4m5wtpGqR xWzfjbmStyLDOa2EW0i3Gl4MT7ETYHrjkQWmTuV8/KzKh7BNYGbZg6iPItdCsGnf/3gYSMeYsYqrK 49xxYv4zw8Wy1xED+2T3N6ENapSmnCvEA0XkI4JZypqIH8Fl6uzue7JhXtFuh8d3DBaLfjNGcBy0d 3RVVGLbcF+iZlL/Xj1rO6k9VnU38CDlnLZIHivWMz+kV1r3aUMQGhvPIALwgVnGFx5xqp5+d9QBuT JOvxtEEdytVYTlp3d/Jg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jOLkB-0001hb-O7; Tue, 14 Apr 2020 13:36:51 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jOLk8-0001h8-PF for linux-arm-kernel@lists.infradead.org; Tue, 14 Apr 2020 13:36:49 +0000 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F63F2063A; Tue, 14 Apr 2020 13:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586871408; bh=hwrKfBxeK+4AD1ibFnoch7kah+4fJkFJk3wYroT7S0E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=skTTgN+rq63uKIs1RVHnvAHkfXTHlRb4q/HJUL3prWhQpva1ix5Y8wQQxe5imin/P /Up9D9UF5vipk/nT7gY9M9Oo9qYOo3G03z1zesgxe2LKbGyHtkqUwKRtlhpqAHodM2 8gOmu4jHZrYIdc8F40rej6Hw+QPT3+tdg7I3bNRw= Date: Tue, 14 Apr 2020 21:36:40 +0800 From: Shawn Guo To: peng.fan@nxp.com Subject: Re: [PATCH V3] clk: imx7ulp: make it easy to change ARM core clk Message-ID: <20200414133639.GC30676@dragon> References: <1584347553-2654-1-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1584347553-2654-1-git-send-email-peng.fan@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200414_063648_838019_168D6F09 X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aisheng.dong@nxp.com, abel.vesa@nxp.com, Anson.Huang@nxp.com, sboyd@kernel.org, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, festevam@gmail.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 16, 2020 at 04:32:33PM +0800, peng.fan@nxp.com wrote: > From: Peng Fan > > ARM clk could only source from divcore or hsrun_divcore. > > Follow what we already used on i.MX7D and i.MX8M SoCs, use > imx_clk_hw_cpu API. When ARM core is running normaly, > whether divcore or hwrun_divcore will finally source > from SPLL_PFD0. However SPLL_PFD0 is marked with CLK_SET_GATE, > so we need to disable SPLL_PFD0, when configure the rate. > So add CORE and HSRUN_CORE virtual clk to make it easy to > configure the clk using imx_clk_hw_cpu API. > > Since CORE and HSRUN_CORE already marked with CLK_IS_CRITICAL, no > need to set ARM as CLK_IS_CRITICAL. And when set the rate of ARM clk, > prograting it the parent with CLK_SET_RATE_PARENT will finally set > the SPLL_PFD0 clk. > > Signed-off-by: Peng Fan Applied, thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel