Message ID | 20210114124032.12765-9-pali@kernel.org (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <SRS0=gHlk=GR=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 DCD70C433E0 for <linux-arm-kernel@archiver.kernel.org>; Thu, 14 Jan 2021 12:42:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 99847239FD for <linux-arm-kernel@archiver.kernel.org>; Thu, 14 Jan 2021 12:42:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99847239FD 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+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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vOLIrqIVtVTbBPJ9q6GUrQMrb1K59o7aOMfqi2ya1n4=; b=E30OBoBdm/hlPl4e+CK7Y6tfd jcvD1UBTiD3XX+7lUQ4mgz/N75D6vtymj6uB48KLx4KIdekTx/GUZem0JmC1zK9A89eJxJREy4Bn7 5ifUJHAVacAqe7PTSfqjaKKomPycGoNCmX5zS97ePyoBbwPTfZJr7D4O6i9etHdWFJRuMYKefJlMX SIs3/5vCRjCIbL3i7kXeAIIr/ihXmvzyaX5hiQW05MVngve7Ies5jrFQVANl6OmwaEz6DTxoBAWbp RRETVnilyw0YkBb5ZseGhHYQE1FJRLRdr+0pOWMZCXzKqXoKbcOibe1Svffkri7+w9lDEviSs/daV atSm1nH7Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l01wC-0001jv-Iv; Thu, 14 Jan 2021 12:41:16 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l01vu-0001gO-3W for linux-arm-kernel@lists.infradead.org; Thu, 14 Jan 2021 12:41:01 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 46AEB23A77; Thu, 14 Jan 2021 12:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610628057; bh=LdKZoDOyWDT6YlTkOhfHUMj6f5x7Zv3boxD1wlMlooc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aXtvzgj4d5uf9V1wv+JQw8qCEuFaia5UV6ZdQNH4UyKiIxW82/vKAEY+XT3ojUcgC 7/QD5VKZPhr8qbfjP3AohWu8ZMhzfpO+qUcqjNYCDuLmNFscC+BKYhw0AKXvrms7y2 yALiDpErBQUbBojzT+IDDyQNe595AWw4BquBYKGGPucUfk+AqTfnTvbytYL23+gkD8 J5fY7W93WO36CQcmigUow88z/+1X4eIfuVp7wdrNsebxtbFCl/8CK2aPqK1jzcwwcv DrfCP61QVPJpTSLOKFAKVDeIQ+uxDoNgZBkHlla7BaJ7hcFFIfJaed5LgKH0A17tzF xYE86sRYV+7mw== Received: by pali.im (Postfix) id E859A848; Thu, 14 Jan 2021 13:40:54 +0100 (CET) From: =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org> To: Gregory Clement <gregory.clement@bootlin.com>, Andrew Lunn <andrew@lunn.ch>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH mvebu v2 08/10] cpufreq: armada-37xx: Fix determining base CPU frequency Date: Thu, 14 Jan 2021 13:40:30 +0100 Message-Id: <20210114124032.12765-9-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210114124032.12765-1-pali@kernel.org> References: <20210114124032.12765-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210114_074058_296043_BB460EFA X-CRM114-Status: GOOD ( 12.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>, Tomasz Maciej Nowak <tmn505@gmail.com>, Luka Perkov <luka.perkov@sartura.hr>, Andre Heider <a.heider@gmail.com>, Vladimir Vid <vladimir.vid@sartura.hr>, Russell King <rmk+kernel@armlinux.org.uk>, =?utf-8?q?G=C3=A9rald_Kerma?= <gerald@gk2.net>, Miquel Raynal <miquel.raynal@bootlin.com>, Konstantin Porotchkin <kostap@marvell.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Armada 37xx: Fix cpufreq changing base CPU speed to 800 MHz from 1000 MHz
|
expand
|
diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c index 002a71775e08..f08281fc525c 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -458,7 +458,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;
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 <pali@kernel.org> Fixes: 92ce45fb875d ("cpufreq: Add DVFS support for Armada 37xx") Cc: stable@vger.kernel.org # 8db82563451f ("cpufreq: armada-37xx: fix frequency calculation for opp") --- drivers/cpufreq/armada-37xx-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)