From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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.4 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 B7BCCC433EF for ; Sat, 11 Sep 2021 13:15:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8678A61244 for ; Sat, 11 Sep 2021 13:15:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8678A61244 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GLEUp6BMXhJufJFnRcPYMTFv7N+YQA1SJE5ItIiak34=; b=VH8kkQ4a+w7t3h Iji9bMLVFohkpsdbRNdvMJVYrJ5h6AmiDIGvDtPxZe9sOTf+CI7XCUm0YlOg2XaC9/LEDPED408SJ vP2UDZWt0njRLhhD7jvZmLSzvinpxhFTkyWfTmXVftZSVaEsQAtLosaFPhr16kqSIYEzYTwH/SK2z 48dECL3AsDJU3liWQozHt+Am2N66zRv8i25oauOZ2hRgy5qmudmlPVmzd4cQq2ws7rnPoxVzLG6R4 FPQ6L6srwQsEIBVZhZz24rkJkafQoC+x/FSZkjPMvEOXpkaPbVUlpTE4no19w9vzgLWxihVjOFown 7sz6K1B56wVurF3C7llA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mP2nq-00EqmD-33; Sat, 11 Sep 2021 13:12:18 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mP2nS-00Eqjn-G3 for linux-arm-kernel@lists.infradead.org; Sat, 11 Sep 2021 13:11:57 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7C79D61153; Sat, 11 Sep 2021 13:11:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631365914; bh=r9bKAP/Db2Ctbq5jkaSZAU9PRMN3GIB1qKROsvayfJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MhvjZvD7qxL4tIWK2J52eJ4C+dknw4GBJ1ei43NXWq7i6C9/MBMurdFjN8KU7lXgH B4iwbqOvDRPGgQrb+EboVBTAR/uJZqfrsEk0JajICbwByIiup2kPCCcpwFDhoVFeOQ KPQb+kQXUo30GLr121B9neM89Z/WDxOUCMuC/JDMqAzXLCAFarLVSh+XJzNDRiuBuB NEdhTGjyaus0bsA5dji455quKi9FPjNHZFyxt85G3vBYSX+klQvkSXJUuPUKkR7kfw OFGbdDb0K8DMjWRpy0s6BvWqZLTfv/CL8bypAh+qIzIVmPANcwCd5cYMy7V59xQsTb LkLXcR2esGZvw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Walleij , phone-devel@vger.kernel.org, Lee Jones , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.14 03/32] mfd: db8500-prcmu: Adjust map to reality Date: Sat, 11 Sep 2021 09:11:20 -0400 Message-Id: <20210911131149.284397-3-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210911131149.284397-1-sashal@kernel.org> References: <20210911131149.284397-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210911_061154_595712_9A666125 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 3bde7fda755f..dea4e4e8bed5 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c @@ -1622,22 +1622,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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel