From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316AbcBNFrt (ORCPT ); Sun, 14 Feb 2016 00:47:49 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:35101 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbcBNFrq (ORCPT ); Sun, 14 Feb 2016 00:47:46 -0500 Subject: Re: [next] Odroid XU3 boot fail after cpufreq: dt: Use dev_pm_opp_set_rate() to switch frequency To: Viresh Kumar References: <56C008F2.3080807@gmail.com> <20160214052228.GA18226@vireshk-i7> Cc: Stephen Boyd , "Rafael J. Wysocki" , Nishanth Menon , linux-pm@vger.kernel.org, Linux Kernel Mailing List , Kukjin Kim , "linux-arm-kernel@lists.infradead.org" , "linux-samsung-soc@vger.kernel.org" , Bartlomiej Zolnierkiewicz , Javier Martinez Canillas , Lukasz Majewski , Krzysztof Kozlowski From: Krzysztof Kozlowski X-Enigmail-Draft-Status: N1110 Message-ID: <56C014FC.8060009@gmail.com> Date: Sun, 14 Feb 2016 14:47:40 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160214052228.GA18226@vireshk-i7> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org W dniu 14.02.2016 o 14:22, Viresh Kumar pisze: > On 14-02-16, 13:56, Krzysztof Kozlowski wrote: >> Hi all, >> >> Recently Odroid XU3 failed to boot on linux-next >> on multi_v7 defconfig. exynos defconfig boots fine. >> >> Probably the "cpufreq: dt: Use dev_pm_opp_set_rate() to >> switch frequency" is important here: >> commit 78c3ba5df96c875b1668e1cd3ee0a69e62454f32 >> Author: Viresh Kumar >> Date: Tue Feb 9 10:30:46 2016 +0530 >> >> cpufreq: dt: Use dev_pm_opp_set_rate() to switch frequency >> >> OPP core supports frequency/voltage changes based on the target >> frequency now, use that instead of open coding the same in cpufreq-dt >> driver. >> >> Signed-off-by: Viresh Kumar >> Reviewed-by: Stephen Boyd >> Signed-off-by: Rafael J. Wysocki > > Can you please try the below untested patch please ? Thanks for quick reply. The patch fixed the problem. Tested-by: Krzysztof Kozlowski Best regards, Krzysztof > diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c > index d7cd4e265766..a97b333036c9 100644 > --- a/drivers/base/power/opp/core.c > +++ b/drivers/base/power/opp/core.c > @@ -1156,9 +1156,15 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev, > return -EINVAL; > } > > - opp->u_volt = microvolt[0]; > - opp->u_volt_min = microvolt[1]; > - opp->u_volt_max = microvolt[2]; > + if (count == 1) { > + opp->u_volt = microvolt[0]; > + opp->u_volt_min = opp->u_volt; > + opp->u_volt_max = opp->u_volt; > + } else { > + opp->u_volt = microvolt[0]; > + opp->u_volt_min = microvolt[1]; > + opp->u_volt_max = microvolt[2]; > + } > > /* Search for "opp-microamp-" */ > prop = NULL; >