From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Subject: Re: [RFC 3/8] cpufreq: imx6q: Set max suspend_freq to avoid changes during suspend Date: Thu, 23 Mar 2017 10:04:27 +0530 Message-ID: <20170323043427.GE12094@vireshk-i7> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pf0-f177.google.com ([209.85.192.177]:35619 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751437AbdCWEec (ORCPT ); Thu, 23 Mar 2017 00:34:32 -0400 Received: by mail-pf0-f177.google.com with SMTP id 20so52200981pfk.2 for ; Wed, 22 Mar 2017 21:34:31 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Leonard Crestez Cc: Mark Brown , Liam Girdwood , "Rafael J. Wysocki" , Shawn Guo , Sascha Hauer , Robin Gong , Anson Huang , Irina Tirdea , Rob Herring , Mark Rutland , Fabio Estevam , Octavian Purdila , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org On 22-03-17, 18:53, Leonard Crestez wrote: > If the cpufreq driver tries to modify voltage/freq during suspend/resume > it might need to control an external PMIC via I2C or SPI but those > devices might be already suspended. > > To avoid this scenario we just increase cpufreq to highest setpoint > before suspend. This issue can easily be triggered by ldo-bypass but in > theory any regulator set_voltage call can end up having to modify > external supply voltages. > > Signed-off-by: Leonard Crestez > --- > drivers/cpufreq/imx6q-cpufreq.c | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Viresh Kumar -- viresh