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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A6F6C19F2D for ; Tue, 9 Aug 2022 18:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343890AbiHISXZ (ORCPT ); Tue, 9 Aug 2022 14:23:25 -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> Precedence: bulk List-ID: X-Mailing-List: linux-mips@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.