Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6268229rwb; Tue, 9 Aug 2022 12:05:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ECs1c4k7dq7MyDaUODrXI187FrXyBvfmE37zxRCdTMmWZxqUxQ9K2pbHHAt9uJzDZD57N X-Received: by 2002:a05:6402:5c9:b0:420:aac6:257b with SMTP id n9-20020a05640205c900b00420aac6257bmr23049937edx.128.1660071943238; Tue, 09 Aug 2022 12:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660071943; cv=none; d=google.com; s=arc-20160816; b=tXNggeT1Q8Zvlnt8QNVXflnGr9egys3qJLLIHT8+oiCmqYY7slAAsUwhuWpugpnKhm juv4/xD7lr7OAP6+F3hn9SID3Q2Pa4/sK+FCDS/5AM5hR9pIWAv6ouJmS8Kd+S9WlZGY WxlxtWLv75/FuuDedgVkDmF6lJm8DewDCV1+Cg82tevAJIo9syTG2vYVdgVdykB16eiu b05ddi0wtnWjZ4B8jp0c2nNcvMxvD2yLFv2QnaLxHvzyl+yPWIwDsB/mrRn5U4c8HaKO AMW+SqAVn0czqgP8WSqGH6jhu4B25YFGPUUce0m8o68V7AljsvPR5ARp/zGv10hSdOk3 rZyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=t4fh+bVDPnDtd51vBqE1mZp1rnlgianHAntnkNfNnak=; b=WRcRa5usHgFd2e0RPCFS8B4C0mBOyRlQlfecBEmImGPbonoYyxpyrwnPiecamjWdhm 22i2gH9+4SXz7WgYmfUez97m6zlC5r3xcaazM2fgnZOajvv/XLMokAzCgv0m85hk8+Cz q2A3nNaUx/hd1ivBhEvm54izACtVMX6OGDDbEeoUNCmHJUVINl04h/YzkBSqBFENfNkh vNbEZgBVcH0JIa3VFcYgG2Ne6M8ae5wPhgPqqVEPMF3+XwFp9s/SjvzRXCJ+92ON5P9y ZnzbICKnyAUEmaICY/uWINuV5Nz2qYG0e6qAROfha613TmW0PIvfiSbHJXYFFkyJ06Xm oUmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c1B7ErLr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc38-20020a1709071c2600b007317732083csi3262175ejc.274.2022.08.09.12.05.04; Tue, 09 Aug 2022 12:05:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c1B7ErLr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343613AbiHISXS (ORCPT + 99 others); Tue, 9 Aug 2022 14:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346307AbiHISVD (ORCPT ); Tue, 9 Aug 2022 14:21:03 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 842D030F42; Tue, 9 Aug 2022 11:07:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2AE8EB818D8; Tue, 9 Aug 2022 18:07:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE785C43470; Tue, 9 Aug 2022 18:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660068420; bh=2EdjzasIB09m+gY3gToosq99knMnczwU9bRriEj/PHU=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=c1B7ErLrUkL2D0AfWZ630nEllP0wRB5x2SrJ/43UfDEoqJ8KUfFWubojQSoA05sLB q/P7JrySK0pw+C1zV4u3bdXr/WicT0eT8eZFe25OvEbRZwXLTDh6GpBzU47NZ4X+VX 0vb40g8RtiQV+V2Ubbfe8G4D7Vmr5NZiutl3u2Q5xbl7ObyEvNZviib8IWWIaAQkeu 6dEetgrnGfD8PKc5U9WDQoqktd0mkCaAJosBrdhiORlBsEfYc8cDkU9+gcCj2tW6Zd 6JwH8yOyhnZEjsA4A/wcrJeDWtb9EYvvYEMKeYI/wBoG5Q3nFesHO78ufd6kfE5VGM EKNIpDMOp21vg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20220419051114.1569291-1-seanga2@gmail.com> Subject: Re: [RFT PATCH] clk: ls1c: Fix PLL rate calculation From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Keguang Zhang , Du Huanpeng , Yang Ling To: Sean Anderson , linux-clk@vger.kernel.org, linux-mips@vger.kernel.org Date: Tue, 09 Aug 2022 11:06:58 -0700 User-Agent: alot/0.10 Message-Id: <20220809180700.BE785C43470@smtp.kernel.org> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Sean Anderson (2022-08-03 16:28:41) > On 4/19/22 1:11 AM, Sean Anderson wrote: > > =20 > > pll =3D __raw_readl(LS1X_CLK_PLL_FREQ); > > - rate =3D ((pll >> 8) & 0xff) + ((pll >> 16) & 0xff); > > + rate =3D (pll & 0xff00) + ((pll >> 16) & 0xff); > > rate *=3D OSC; > > - rate >>=3D 2; > > + rate >>=3D 10; > > =20 > > return rate; > > } > >=20 >=20 > Since there have been no objections, can we apply this? >=20 Can you resend it? I can apply it after the merge window closes next week.