Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2350929pxb; Mon, 20 Sep 2021 19:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFx1/DQ2T7N2ijCHuyglEeDAWXEGnKsgnvyeEdyNp5tdt8BwMyJ5fJvTB3QRUhAGHB9feA X-Received: by 2002:a17:906:19d8:: with SMTP id h24mr32524709ejd.490.1632192386985; Mon, 20 Sep 2021 19:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192386; cv=none; d=google.com; s=arc-20160816; b=Vvc/EbLadbF3FYDPadiq5aVvLb/FNVFWxP+woof+TQYFpGeBT7E8C4anjsEQmc3AsN MAP2QEuhCt5bVDBRPJEKf16rAzv9ow/iJDOPQ+ZE3qQWROOuruPSsFrjibNbrgroCYtV 4gRDa0+ySt0vOOGrRHkwh0oKU+2vHAqA8YqeKaBHTt39ncm1A7Hv+1Cq4D4/AynPZ3xi GdOi7k7rcqWYT/2oNSqiEyok3UjoFzfxAjJYJPuluXvEFNVfZ0EAF4CoS+D+QyoET2b3 BwxPm7oHxtdLvoC8Y8PmzeFr2UmNkmGN95cnEFQYyRbcNX98P1z0b3l0iy4GJex/VTuf ln2A== 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=YkZmiE9tHyYhTl39ax7waB0/Qmg94rdh9lYS4RNpth/ISmXc0DhLltotovKNFfwCOy y9s42qe0ah0w6e2UUfclv5cs9k0xe5c6OKekZw2qV1nIs2L+OdHDswNegnkxB0+1gy9S bJorhrQA6IVnXWJwgZG2Jbbpwk10IaFrHXgE7d5qN4dR2Z16eNNW9Wqmilm++NhOcGTq 9hWYXs95sxd0lTzRyoLG5wN6f6nEQ6j8oXvJJn+MYBe3xP8LddHOqj0BDlhoe3G57mJh wdOt/zCMuE2ezYnTFGf4vnB6CX9ASZSsjhNfe4px0k2c1yPAO0CwOhQYEq0VjVFFivBd U1aA== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 jx3si17782482ejc.525.2021.09.20.19.46.03; Mon, 20 Sep 2021 19:46:26 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UsPDKIPZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348391AbhITS1L (ORCPT + 99 others); Mon, 20 Sep 2021 14:27:11 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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; -- 2.30.2