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 6B249C433EF for ; Tue, 17 May 2022 19:41:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240210AbiEQTl4 (ORCPT ); Tue, 17 May 2022 15:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352854AbiEQTlj (ORCPT ); Tue, 17 May 2022 15:41:39 -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 CC1F4522FC; Tue, 17 May 2022 12:41:24 -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 0BE6BB81C09; Tue, 17 May 2022 19:41:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E207C34117; Tue, 17 May 2022 19:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652816481; bh=FgdSjd/rFw8jiuUv2YH2aiwegMDQriMKJOQcbbSUmh4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=eGZMJb+sn2IT28xBtiBLoxYYblIkuPwmKaiL/PoLYuHyqdgryUkAjg9AsXvN8uuXV dKsI3xlnM1k6MxuLj43tc5JGhwauraf3OQlNMD93ZKBJDQ5WFHknx2xfWQ5zdfx/em gjwyUpnrQLNJmrWyLMPn4WsMUJDX1a827f+9C5yu+TBc22ez2DoFM7gyxiFy2OFqoS id9iqaterX7+vTlEg/xEorIW671sOcyMUXtUX48WdUO9p6mt5i7AbVEOo1KF20RpNE Dx5cocvbrb6DXRI6/HzQ3BQMtWj5n/hO/PjrQMikNnBjj6URXaA/4NX/L/nuh3F0wY Kjn+eYqXYKQeQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220413071318.244912-1-codrin.ciubotariu@microchip.com> References: <20220413071318.244912-1-codrin.ciubotariu@microchip.com> Subject: Re: [PATCH] clk: at91: generated: consider range when calculating best rate From: Stephen Boyd Cc: mturquette@baylibre.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, Codrin Ciubotariu To: Codrin Ciubotariu , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 17 May 2022 12:41:19 -0700 User-Agent: alot/0.10 Message-Id: <20220517194121.9E207C34117@smtp.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Quoting Codrin Ciubotariu (2022-04-13 00:13:18) > clk_generated_best_diff() helps in finding the parent and the divisor to > compute a rate closest to the required one. However, it doesn't take into > account the request's range for the new rate. Make sure the new rate > is within the required range. >=20 > Fixes: 8a8f4bf0c480 ("clk: at91: clk-generated: create function to find b= est_diff") > Signed-off-by: Codrin Ciubotariu > --- Applied to clk-fixes 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89A79C433EF for ; Tue, 17 May 2022 19:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:To:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=br2N/1/G+tFmNqlabI9YC9rEjmb732U07Z/RTXe+RkM=; b=Lzh15UmDL+oSnJ l8sfzjuRluC03ENPjtjxJ912Mh7c70R7dsInjdQ67wjTgHbywENEig3ZjH2CrRr2J2LZjYxi6F3pp nwxYu3kdzHiLo1wjMhqDGtE4/as4+LklZvLoPPzHuewnuRjyfiT/G8pxC+Q+KehdBfsSZClmu1Uiq wUCGjGh1k6Z6tfUoItRkGqp+O0ID9mdPyigjxv/m6N9YRu63TEpknnKZROIGCkjYXQbqwp/oSbOaB tQRh9i4z8eDN3fSYY+pWz8OOZRzJE+xKOm6pU2/hwMQDCmn4gZS4147Ut0adu9wFrVZcax5qvD8K8 JX/8mDQ/JqT2f+UKSEhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr34S-00FeBa-V2; Tue, 17 May 2022 19:41:29 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nr34O-00FeAU-LT for linux-arm-kernel@lists.infradead.org; Tue, 17 May 2022 19:41:26 +0000 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 219E7B81C0B; Tue, 17 May 2022 19:41:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E207C34117; Tue, 17 May 2022 19:41:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652816481; bh=FgdSjd/rFw8jiuUv2YH2aiwegMDQriMKJOQcbbSUmh4=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=eGZMJb+sn2IT28xBtiBLoxYYblIkuPwmKaiL/PoLYuHyqdgryUkAjg9AsXvN8uuXV dKsI3xlnM1k6MxuLj43tc5JGhwauraf3OQlNMD93ZKBJDQ5WFHknx2xfWQ5zdfx/em gjwyUpnrQLNJmrWyLMPn4WsMUJDX1a827f+9C5yu+TBc22ez2DoFM7gyxiFy2OFqoS id9iqaterX7+vTlEg/xEorIW671sOcyMUXtUX48WdUO9p6mt5i7AbVEOo1KF20RpNE Dx5cocvbrb6DXRI6/HzQ3BQMtWj5n/hO/PjrQMikNnBjj6URXaA/4NX/L/nuh3F0wY Kjn+eYqXYKQeQ== MIME-Version: 1.0 In-Reply-To: <20220413071318.244912-1-codrin.ciubotariu@microchip.com> References: <20220413071318.244912-1-codrin.ciubotariu@microchip.com> Subject: Re: [PATCH] clk: at91: generated: consider range when calculating best rate From: Stephen Boyd To: Codrin Ciubotariu , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 17 May 2022 12:41:19 -0700 User-Agent: alot/0.10 Message-Id: <20220517194121.9E207C34117@smtp.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220517_124124_901489_846394A3 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mturquette@baylibre.com, Codrin Ciubotariu , alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Codrin Ciubotariu (2022-04-13 00:13:18) > clk_generated_best_diff() helps in finding the parent and the divisor to > compute a rate closest to the required one. However, it doesn't take into > account the request's range for the new rate. Make sure the new rate > is within the required range. > > Fixes: 8a8f4bf0c480 ("clk: at91: clk-generated: create function to find best_diff") > Signed-off-by: Codrin Ciubotariu > --- Applied to clk-fixes _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel