From patchwork Mon Sep 20 16:43:48 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: 514360 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2322875jao; Mon, 20 Sep 2021 11:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAIgYLQ2xPlp8fTQ4jlhxGvcEPFE2roUJ+rcsqF593R/ZE0NgnOYZuGAtpocbGUdJ84DnG X-Received: by 2002:a05:6402:1057:: with SMTP id e23mr31386186edu.352.1632162550330; Mon, 20 Sep 2021 11:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632162550; cv=none; d=google.com; s=arc-20160816; b=QmrQRvEr5+6qoSPOQVfAsYRnBzB1No7rALzjaMXlosYTGWbCeDEK+X/e0CwSg7V87l JSFAbKPXtWQieRUeklbw0vTp+H8MEOw1iYNh1qDEd17+olA+aNfgdUz+DSg4QXTBFRkh oXVSlApu20aVukhI9x3kl6O5hIMNVVuH8IB9vX4c0rbXIs8P18HvKHkimGG2cqWmutwT t58QHkSLCfRaHPBhDtnSoDCEmoJlgbHvjk7qp9qjxh2X8nWJYfZ8g10a8nmsNhrYNI/b PlYp1geyG5zzUAC2LUc8Wt/207OF7lUKpyYk7VdCKaGDCgu6KQsbn4Wz9Llk8cPqIstZ Ip1g== 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=+8tQVupKpvNSqZejxizFVtDknoj4X0Fymbv4FxvxIXk=; b=cS5/IvfAiazLaIOVwaG5has/p9KjL9IunRpRMqq2d2qG87BBndIejIDkYgVS+2BXfp EqcdTOtxuhvG6yWMYe84tQjJ+MQ0RxzEL2dM5OCWULrXGUEBpTj9SqktoKIRTgR3qTFr CNWPuBG51czHUITbUDnCaDTUmF7lxvOAP4ywL2+zGQbyr0fmjgPsUty4EJVmAkPvoe8U Y8GI0YchRzQroLHkKNT/iyjKHwIQoY1XxIOCtdjnQp7rf+lGBEPTVyE/W281tkSQN6iM 0DvKNwDFFcZ0ghQF9N4BFf8iFCEv+1LT8VTDPH+IlfKQrZk1xZTKGg7Phfr4lBiyOiKm uFSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hM5jwCxu; 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 i14si10842996edf.22.2021.09.20.11.29.10; Mon, 20 Sep 2021 11:29:10 -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=hM5jwCxu; 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 S1379800AbhITSac (ORCPT + 11 others); Mon, 20 Sep 2021 14:30:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:49302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379165AbhITS21 (ORCPT ); Mon, 20 Sep 2021 14:28:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E231C632E2; Mon, 20 Sep 2021 17:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158791; bh=GzxPKoFSUPqjQDPedCrh21+0h4qkVoTJdFaYoAVuqa8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hM5jwCxuGgXiijLhd0g2Iq4aeZOQvHmXtBJLef9le4YqDdWGlsVHDPcqSd7/r0bBG sLr3N23Ooh4Ze0x58fBbObi+kHoN/eQFx2jw559zXuYvQ7xG1KIW/5b9fQNQGoxcxx tOI/zGsLXyim/7I2j8FBgGx4+bQBdmW2XB5FhD1g= 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.10 056/122] mfd: db8500-prcmu: Adjust map to reality Date: Mon, 20 Sep 2021 18:43:48 +0200 Message-Id: <20210920163917.622342639@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@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 a5983d515db0..8d5f8f07d8a6 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;