From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750895AbdH3XkW (ORCPT ); Wed, 30 Aug 2017 19:40:22 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:42940 "EHLO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbdH3XkV (ORCPT ); Wed, 30 Aug 2017 19:40:21 -0400 From: "Rafael J. Wysocki" To: Lucas Stach , Leonard Crestez Cc: Shawn Guo , Viresh Kumar , Anson Huang , Fabio Estevam , Dong Aisheng , Bai Ping , kernel@pengutronix.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpufreq: imx6q: Fix imx6sx low frequency support Date: Thu, 31 Aug 2017 01:31:38 +0200 Message-ID: <1559706.kkUfkg9agS@aspire.rjw.lan> In-Reply-To: <1503922071.2347.0.camel@pengutronix.de> References: <4304e578a343c9acaed46b7e205d49bb63323f80.1503918257.git.leonard.crestez@nxp.com> <1503922071.2347.0.camel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, August 28, 2017 2:07:51 PM CEST Lucas Stach wrote: > Am Montag, den 28.08.2017, 14:05 +0300 schrieb Leonard Crestez: > > This patch contains the minimal changes required to support imx6sx OPP > > of 198 Mhz. Without this patch cpufreq still reports success but the > > frequency is not changed, the "arm" clock will still be at 396000000 in > > clk_summary. > > > > In order to do this PLL1 needs to be still kept enabled while changing > > the ARM clock. This is a hardware requirement: when ARM_PODF is changed > > in CCM we need to check the busy bit of CCM_CDHIPR bit 16 arm_podf_busy, > > and this bit is sync with PLL1 clock, so if PLL1 NOT enabled, this > > bit will never get clear. > > > > Keep pll1_sys explicitly enabled until after the rate is change to deal > > with this. Otherwise from the clk framework perspective pll1_sys is > > unused and gets turned off. > > > > Signed-off-by: Leonard Crestez > > Reviewed-by: Lucas Stach Patch applied, thanks!