Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4205172rwb; Sat, 21 Jan 2023 07:32:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXuJSTcYUa2JN4a28JWJVZpKFmtvWSxLZakF2vn23VF4hLlo/Kx+YyQs1JAF2tegYfpjJ7OE X-Received: by 2002:a05:6a20:9590:b0:b8:70a9:142 with SMTP id iu16-20020a056a20959000b000b870a90142mr19975947pzb.43.1674315137602; Sat, 21 Jan 2023 07:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674315137; cv=none; d=google.com; s=arc-20160816; b=jnP695iYOtnqZw+8iNu43mrBF1xCc7zjmDD53hBl4RokS37wJPQFmiWnJs81ueM1ae OePA1ZR4AqyM+ilPjJavFSzy/v6aIO0Pc5T3EWSqsTIDxWKnuU22pB9IKllhlhewRVpc mKCPe4K0jjVmyuwf0Z4iaxgA+7HIrXVeSLD+1npHJCfQi+IUPnndiXVE1Gf/emKZ+p+A ALlXXaYzyTTp2l188/vpTsOnd/9EcR/4ShQNem3KM9wFNxLyJqH+Qf1VAFdaWxU2OvEk KZjYdOLuZOPWBdEKdLI5Ph2jdD0ykKNAfLM+3eAmDcTqEaIJ4pewcjwj+4gssT5h4QQo 6LiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NzQKNXz+zgf7x8YHxHj4PdUVxlRwt2XjWiBKTXl0bAg=; b=fec0lPesomflf+8Gra6KMqkyzC2ZnmIT3Vi/qUZflulHXgKGTHsu5TLRNk1lE+fiv6 Mszq/SBwTh9Mw+5WzUHy2Q2jv+5/ilULIGDOo5DfKno+6a2v0vjXX/jCoHq7WSl2hiwQ ZN6zxzwMvLyBgqmSEk3Efq8jGQfmjOUkmg0e07/FKt0LVDGs7t1txCb74OYxUg3vjGLn oZjiLLAUCw5pLjb/05QGPu2P23Gq4nnl/xHec1IkbxJO7TE7KjMTeanFeeI7OC1DT8gS 8/UpVeMgLxuDOSE/VewQkEJBQGVysD1Z+6LcVGPkRfK36UxBCxDFncY4wRq+WvPmEAw4 AHBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JgzGqOv0; 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 g1-20020a636b01000000b0049b926fa4basi46842127pgc.345.2023.01.21.07.32.11; Sat, 21 Jan 2023 07:32:17 -0800 (PST) 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=JgzGqOv0; 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 S229704AbjAUPAw (ORCPT + 50 others); Sat, 21 Jan 2023 10:00:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjAUPAv (ORCPT ); Sat, 21 Jan 2023 10:00:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 783541F91D for ; Sat, 21 Jan 2023 07:00:50 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id A1FC860A24 for ; Sat, 21 Jan 2023 15:00:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26BBEC433D2; Sat, 21 Jan 2023 15:00:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674313249; bh=xw2Z/7VGgf6MRizE7aJiA1LL99jH3my9WFA793dqn9E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JgzGqOv038rBIyhf+03U/zbPgYEf5M/2qfzuF7XpKSnCGXy/OGJ4WC5wEcUmAoDEW pV4Tus09/AATTuLzuSAxFeYjeIhaHOs8ZuVyw0jalt8uUilJJxoWpRbiiQALeMbqWT 3kNXzEoxsxC9Pbl0I1jZbyJk2XVPwCcrkbojYopxetw+h9kK9Q8pJn5+9a95jukbBm pDeBtWqHAEYuRiqd7Wv2AIEtVPOaBW7NAX+lOo2aa1etDjs47DFVsQeKDgh/xTsCyJ KLCCsdcQBquFq5Z0bD3l43OhHIC4JJ6GNwL18Lcfi77CHWCMmqOCEqIAvL6D2v/gE0 mA5kY9WLUNk/A== Date: Sat, 21 Jan 2023 15:00:44 +0000 From: Conor Dooley To: Jesse Taube Cc: Conor Dooley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Yimin Gu , Waldemar Brodkorb , Albert Ou , Palmer Dabbelt , Paul Walmsley Subject: Re: [PATCH v1 1/2] riscv: Kconfig: Allow RV32 to build with no MMU Message-ID: References: <20230119052642.1112171-1-Mr.Bossman075@gmail.com> <20230119052642.1112171-2-Mr.Bossman075@gmail.com> <056f0d30-d340-fdc4-3744-1cdedd8b4048@gmail.com> <31646cc6-0ed7-89b8-06f9-aaa584ef8047@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fRlkre/rkur7aMjh" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 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 --fRlkre/rkur7aMjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 20, 2023 at 08:57:38PM +0000, Conor Dooley wrote: > > > > diff --git a/drivers/clk/clk-k210.c b/drivers/clk/clk-k210.c > > > > index 67a7cb3503c3..17c5bfb384ad 100644 > > > > --- a/drivers/clk/clk-k210.c > > > > +++ b/drivers/clk/clk-k210.c > > > > @@ -495,7 +495,7 @@ static unsigned long k210_pll_get_rate(struct c= lk_hw *hw, > > > > f =3D FIELD_GET(K210_PLL_CLKF, reg) + 1; > > > > od =3D FIELD_GET(K210_PLL_CLKOD, reg) + 1; > > > > - return (u64)parent_rate * f / (r * od); > > > > + return div_u64(parent_rate * f, r * od); > > >=20 > > > Nope, that's wrong. I omitted the cast... > > >=20 > > > return div_u64((u64)parent_rate * f, r * od); >=20 >=20 > > Ah that's a much better fix, shall I prepend this to the set and author= you? >=20 > Uh, I'd rather check that it is a functional fix first! > I have the board, so I'll give it a go tomorrow and let you know. Gave it a go, board still works with revised version of this change in place. Thanks, Conor. --fRlkre/rkur7aMjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY8v+HAAKCRB4tDGHoIJi 0m6AAQCZuIQY4wCVK265zGzoLEP15W5Ue5T/PLw4PH1FspFktQEAsy6GmdgtX5pe US6Z4LVXtfXIev97q8Yz8HvU6BeFKwM= =YZ5v -----END PGP SIGNATURE----- --fRlkre/rkur7aMjh--