From patchwork Mon Sep 20 16:44:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 514355 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2316410jao; Mon, 20 Sep 2021 11:21:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD5jbupX+QGx/1P7ok/UrgjqABhKabxqj7qgedWtzXbJG56lgWr+kxYE0Q1Gl31TkpTwtc X-Received: by 2002:aa7:d954:: with SMTP id l20mr30662141eds.149.1632162065749; Mon, 20 Sep 2021 11:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632162065; cv=none; d=google.com; s=arc-20160816; b=bQmL05BvZQb8ro8lAg1FyYQO9sMWGGpY8aYfo331x1H3oO2QoIunoiB/Iqqfrh8hh6 sYGfmd6ITC0UBnMnalZ7WB+F3C896RBuXp405CQpklgThv/biYUh1WpfTEGHArrnO+et +9oZ7wJ+6lgQ7vaBr36Udy7lqyW+HPIMg3x2hE77WhgAvFjTgwsgK8d5hUSXEaY2/Xrs nbr6xFvG/iShfrXPPQVlf9YyGybOw4xOBh91Nedl7LtP1Eg9EOIbc25fKN6LwHeFpcVD OxfVK7O6TQ3ms2EGkLfH9r8J+AZRalGp33JVsuPDdHQ3kFXP71daK51XNy7EXmsELFSM StJA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TA4X4oEV9w9li6lNgDISeqIO6hIb+xYU2G1kAO7w0tQ=; b=NvWbs+KEUowo+tNPzdAWpJKljE7Yfh6DaLzv8QCmZ/Hr14YbdS4AQD0T2iJW1BS6zv vriVmVmMIXYiEcrt844LBq9u0iBMVYDvXFBa0IXEpsCZ/nMKxp6qdI9ybK43T5t0AwPs kSht0j6XJydFBCL0tdQXH1UjKqDqWbRrqLMDjTszX5vsu0ZlPgyGvOBn2Urd9LZhVl9+ sXJLS9pBtY3jlmr1iPv+x+OcslxVEngknqkcDz4yomIRgR28diUw9xVlQnYWqARSbvIh wBmd5scjKo0sk+9f8YTSIZDMd7yRW9QqrhxyHN8gfB72hPPaOW1naBPl0sz18hDawy2Y pcbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UsPDKIPZ; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si16605055ejl.237.2021.09.20.11.21.05; Mon, 20 Sep 2021 11:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UsPDKIPZ; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378013AbhITSW2 (ORCPT + 11 others); Mon, 20 Sep 2021 14:22:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:40368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377563AbhITSUT (ORCPT ); Mon, 20 Sep 2021 14:20:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 145BB61A8C; Mon, 20 Sep 2021 17:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158606; bh=ZWcDGK7J3ICcqK6E0ld5xmH3Dpj8mEOLl71Gkvr1t7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UsPDKIPZQv2yT2TIuWtkHr6Q6KTxlu4tBRG7a3QYwATu8LfytFElssE7bLXr0vGMH iHOsv+y5qd4RQtB47OMDhNsj4kVM2/calZ6SBYhjIx1zspj5KT8xxDouJ3xbLl1YY+ OC6rnm/TzzUhSgXGsZEX0yGWUgeplPXTjZkgu3/s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, phone-devel@vger.kernel.org, Linus Walleij , Lee Jones , Sasha Levin Subject: [PATCH 5.4 234/260] mfd: db8500-prcmu: Adjust map to reality Date: Mon, 20 Sep 2021 18:44:12 +0200 Message-Id: <20210920163939.073100257@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Linus Walleij [ Upstream commit ec343111c056ec3847800302f6dbc57281f833fa ] These are the actual frequencies reported by the PLL, so let's report these. The roundoffs are inappropriate, we should round to the frequency that the clock will later report. Drop some whitespace at the same time. Cc: phone-devel@vger.kernel.org Signed-off-by: Linus Walleij Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/db8500-prcmu.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- 2.30.2 diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index dfac6afa82ca..f1f2ad9ff0b3 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -1695,22 +1695,20 @@ static long round_clock_rate(u8 clock, unsigned long rate) } static const unsigned long db8500_armss_freqs[] = { - 200000000, - 400000000, - 800000000, + 199680000, + 399360000, + 798720000, 998400000 }; /* The DB8520 has slightly higher ARMSS max frequency */ static const unsigned long db8520_armss_freqs[] = { - 200000000, - 400000000, - 800000000, + 199680000, + 399360000, + 798720000, 1152000000 }; - - static long round_armss_rate(unsigned long rate) { unsigned long freq = 0;