Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5473191rwd; Mon, 12 Jun 2023 05:47:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Z8o6+INK6DpKXtuTedCctGpjaXzaxu3SapobM7K5bWFmjkt6oLO6GiLAcb3/m5oRb6KvS X-Received: by 2002:aa7:d046:0:b0:516:a09c:ce21 with SMTP id n6-20020aa7d046000000b00516a09cce21mr4407550edo.38.1686574029180; Mon, 12 Jun 2023 05:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686574029; cv=none; d=google.com; s=arc-20160816; b=d1RGKqnd8eBx9Pz/VY7HhtGZi2AhmsU1nSVXlsUyH8bLgUUn6rqDiSg8FJPeN6TdO2 o4hCvEkxpQZLOA1VZ4KXojgF+MvD0UYa2ZFdh3dJA00IhBNw9YPb5MyEKRJ0b3rbbmt5 g4KTGTmLs9o0hUR8tiTzL5/3PdJgG2IT6JuLVF2FhmClPPKN3F2Frnvi6VyVWuZeLNga mu+6YHZk+pykt8TW04dWnPI00KRexQVwShFsy2HZnlLWt9/NLfB7NWD2lSWbLaU0N1vU 0bfbqOFVGGHZ4HYDQGSwK+KAPEBVKTqORNp749FU4jXoxFornHqcsWhM2qtr8QZkw7xa rDFA== 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:feedback-id :dkim-signature:dkim-signature; bh=CQngQrp3m88sfmNQ6jwb/0MCwpSvf6b3yAjboq72bpA=; b=uWnZ/kY1q/lJCDgjRoxZmbQo5bNCAIY7bkn/5ydDeOZlkkhO7txL4KqZmHQgz+53Kl +Vpy6zESV3uRSkaGKwGAuirz7gWkoLZyjZpaXkDWBi2djDMqpqNMB9t2TRqTItNll4Kh CcCqmoXg8u211wUDeukBffrAp9D8fMyp7T7aDKRa5xbJTqzh5mSrRFOyO60jRHwHOXNb RPcktHhtXq1pWo49Bj/TIpN+MKgeEbE2pc8zPIct7NrCoY1BCxrFqlwBd5R9ZJIQXC3b Q5/EGW7/n1y5+YiIjRkbxgO5NkUAhEgqWJpB8rLkAWfPWmtXmwyERNHuIupXTx4ubaXp LPRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=eGsRRoLH; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=D5y7RDRv; 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=cerno.tech Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23-20020a05640202d700b005186a9a053csi113705edx.350.2023.06.12.05.46.43; Mon, 12 Jun 2023 05:47:09 -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=@cerno.tech header.s=fm2 header.b=eGsRRoLH; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=D5y7RDRv; 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=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbjFLMVG (ORCPT + 99 others); Mon, 12 Jun 2023 08:21:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjFLMVE (ORCPT ); Mon, 12 Jun 2023 08:21:04 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E746A8F; Mon, 12 Jun 2023 05:21:03 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5CA985C00DE; Mon, 12 Jun 2023 08:21:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 12 Jun 2023 08:21:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1686572463; x=1686658863; bh=CQ ngQrp3m88sfmNQ6jwb/0MCwpSvf6b3yAjboq72bpA=; b=eGsRRoLH5t8ydsG2kG 3wVfFqAXc8gTdaQYlJOkHzdZhJwr6veVnTPbwn96vfiLfswW8BU41MUdniRuMRmp Nfz2cydtyf3iiZPGKHuRVEj5/h02Xl/YRIKh4HKgKFmD8AZls/VSLh8uXILGxBlS eLVhc2i+lWq8g8L57/CnjUwdiksy3+u7vCE1uzeQni09FwqXNM5ByOaRq+rzob7S 5QRawbHTkq6U2BezQHkwgXj61S756h10qj+aGzQlnr3rfR4fgjz0UA1csVVO+bRJ LiU5xAa4wTSvxCjmTOJ1AebY6YSEdiVyQK3jKSFCOaxGEqVCLjlDOuXsif61qD1O U9wA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1686572463; x=1686658863; bh=CQngQrp3m88sf mNQ6jwb/0MCwpSvf6b3yAjboq72bpA=; b=D5y7RDRvVSzB/6ssAwBCRtWlJtIoX GyZU9cUu+oJCZAfV6yvrZualKX+lExaUGxgKyk/elY7x8KvhrjfypHI8DgVgsEo8 seJBYlPk5cqfzJQD4HTE/RCOXqMJkqWrjJqaUMuwEIkUjNZ/B4XrOD7bxJqUuMNa kF6Q1chkEwVJB+1Af+RslaB8g0NK3RhwwWesZXSyK/+1FI3SUTGmuUFRkFZzRlSY w4xsl3oqb0OrTau8qCTh0T8DSgJIsNBEVeeFEOqwCUTN1be7LcFYJ33AB4cK1oAg 7MwtUWtA74/LWn3Sxd3C1kT+WNyYS6RxvzMypPrWYi80f5JZm0fbcsMRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeduhedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtsfertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeeuveduheeutdekvefgudevjeeufedvvdevhfejgfelgfdtkeevueegteek gfelfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Jun 2023 08:21:02 -0400 (EDT) Date: Mon, 12 Jun 2023 14:21:01 +0200 From: Maxime Ripard To: Frank Oltmanns Cc: Andre Przywara , Chen-Yu Tsai , Jernej Skrabec , Michael Turquette , Roman Beranek , Samuel Holland , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH v2 1/2] clk: sunxi-ng: nkm: consider alternative parent rates when finding rate Message-ID: References: <20230611090143.132257-1-frank@oltmanns.dev> <20230611090143.132257-2-frank@oltmanns.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e4wbpxmfzpclxccx" Content-Disposition: inline In-Reply-To: <20230611090143.132257-2-frank@oltmanns.dev> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 --e4wbpxmfzpclxccx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sun, Jun 11, 2023 at 11:01:42AM +0200, Frank Oltmanns wrote: > In case the CLK_SET_RATE_PARENT flag is set, consider using a different > parent rate when determining a new rate. >=20 > To find the best match for the requested rate, perform the following > steps for each NKM combination: > - calculate the optimal parent rate, > - find the best parent rate that the parent clock actually supports > - use that parent rate to calculate the effective rate. >=20 > In case the clk does not support setting the parent rate, use the same > algorithm as before. >=20 > Signed-off-by: Frank Oltmanns Most of the comments I had on v1 still apply there, so let's figure them out before sending a v3. Maxime --e4wbpxmfzpclxccx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZIcNrQAKCRDj7w1vZxhR xYjBAP4zxaQPtCC3bLmbBvqxb8o92BcM76cTi9dor6Y96WivRwD7BPrLB9GMmbgP qaL3OlTIIIndIP66M8PVuTjVjm6tCQw= =EEt7 -----END PGP SIGNATURE----- --e4wbpxmfzpclxccx--