Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3656440pxf; Mon, 29 Mar 2021 08:03:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx73EHHLQtUomWIqiH2dIUQrKrdFlrUON1tkAqzd6rcuCuVWvfqX4dZWBka64o/oNJ1QqRH X-Received: by 2002:a17:907:98f5:: with SMTP id ke21mr29081505ejc.552.1617030222345; Mon, 29 Mar 2021 08:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617030222; cv=none; d=google.com; s=arc-20160816; b=Kc6WNihlsRN8TeO9IjCyA5o0qIOJS+Ky5kshH6ROYY437tSwnvxr6B4zs70Z/qAx9j rym+8PJhrlaRhITqIoV0VAjc+7+5lHSN1YfBiied7vKcZCKuUCPv+Efl+mPFoprQMmYL 9wwLKPKxEvV2qJ4A9Rq+bxRaUGuRHcdSV0X+v1LJ/GYY+B0H+k6BkYppmu7TZ/vFbQWE gaO5nbAPE+vId+/1LdVw7ezwfBv5+jh8fI8l1V1SY+hy/FbfveuXsHbWTRvnYi8WrWe7 Q/JGtEnbxboFPfi7xnMuJipurjDqxu4McZx12D6+XHo8V2pKltTzVGSvy+vuBFpybXpy qVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=Xp3CakXwfvDcd/NlZTf7svDhINIfntL0sWEVeVIGq0g=; b=uCknPUbuvy+4qJj57kYPQSt+1fB5W32b9p/Dlbnc/buqAIigpK+FJQEMS8TDIfTQoz hYGpj2HOo/rr9cFbnuTQnzzs109uz8WLKFvQhU4OHDPgMkFVEjJLyLkP9UZ6sA1f+z5H PjufHT8xLI4YIdcUMPVTb+XB4hAWLJGtIbHrhVtuRxK03ERCfbbTaSrWylAvrUBW3ThB OF3cC09CJ6vxS9dfCRht6IUx3HOtf3DYi3TLvK7ThuuBk2Kxqh6Wbo07OHHlvw7k1OoX UljPLgaml8bkw/h+unquozCAsLHIhBJIWvwAwjmipbZNQgUw7J8lpULQfXjbYLC0lwIv ED3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si12716848edq.252.2021.03.29.08.03.19; Mon, 29 Mar 2021 08:03:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbhC2PAA convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Mar 2021 11:00:00 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51187 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbhC2O7l (ORCPT ); Mon, 29 Mar 2021 10:59:41 -0400 X-Originating-IP: 91.175.115.186 Received: from localhost (91-175-115-186.subs.proxad.net [91.175.115.186]) (Authenticated sender: gregory.clement@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 01760E000D; Mon, 29 Mar 2021 14:59:35 +0000 (UTC) From: Gregory CLEMENT To: Pali =?utf-8?Q?Roh=C3=A1r?= , Andrew Lunn , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Marek =?utf-8?Q?Beh=C3=BAn?= , Miquel Raynal , Tomasz Maciej Nowak , Luka Perkov , Andre Heider , Vladimir Vid , Russell King , =?utf-8?Q?G=C3=A9rald?= Kerma , Konstantin Porotchkin Subject: Re: [PATCH mvebu v3 08/10] cpufreq: armada-37xx: Fix determining base CPU frequency In-Reply-To: <20210222194158.12342-9-pali@kernel.org> References: <20210114124032.12765-1-pali@kernel.org> <20210222194158.12342-1-pali@kernel.org> <20210222194158.12342-9-pali@kernel.org> Date: Mon, 29 Mar 2021 16:59:35 +0200 Message-ID: <87pmzidmzs.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pali Rohár writes: > When current CPU load is not L0 then loading armada-37xx-cpufreq.ko driver > fails with following error: > > # modprobe armada-37xx-cpufreq > [ 502.702097] Unsupported CPU frequency 250 MHz > > This issue was partially fixed by commit 8db82563451f ("cpufreq: > armada-37xx: fix frequency calculation for opp"), but only for calculating > CPU frequency for opp. > > Fix this also for determination of base CPU frequency. > > Signed-off-by: Pali Rohár > Tested-by: Tomasz Maciej Nowak > Tested-by: Anders Trier Olesen > Tested-by: Philip Soares > Fixes: 92ce45fb875d ("cpufreq: Add DVFS support for Armada 37xx") > Cc: stable@vger.kernel.org # 8db82563451f ("cpufreq: armada-37xx: fix > frequency calculation for opp") Acked-by: Gregory CLEMENT Thanks, Gregory > --- > drivers/cpufreq/armada-37xx-cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c > index 1ab2113daef5..e4782f562e7a 100644 > --- a/drivers/cpufreq/armada-37xx-cpufreq.c > +++ b/drivers/cpufreq/armada-37xx-cpufreq.c > @@ -469,7 +469,7 @@ static int __init armada37xx_cpufreq_driver_init(void) > return -EINVAL; > } > > - dvfs = armada_37xx_cpu_freq_info_get(cur_frequency); > + dvfs = armada_37xx_cpu_freq_info_get(base_frequency); > if (!dvfs) { > clk_put(clk); > return -EINVAL; > -- > 2.20.1 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com