Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10916490rwp; Fri, 21 Jul 2023 06:52:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlH8EzKjR/rtvrKeOsVIodpcLZcmiPvqySPWGMPxdU07EFdaGavvd2Cby7oMxaX73Fe+R5Jp X-Received: by 2002:a05:6358:721:b0:134:dc90:b7d1 with SMTP id e33-20020a056358072100b00134dc90b7d1mr4171rwj.25.1689947539980; Fri, 21 Jul 2023 06:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689947539; cv=none; d=google.com; s=arc-20160816; b=SNzamkmuasxRJjtruyRiVpILxEf9VhkE3k1pr1eCHRNrlCF02ilavFo9TCqjrvWObf j+td0Qk6L/BuxzcvJ7hfMqEgFFSiM5FringnovSlEvm5647FxZ7iRjbI/SxRJUJqUZd9 jN0lwDh6dxl4F9pzu1HO5cNRLNVH+4QmciBkvaKEel9H4K1faIzcggoDuHSqEyN8w+FT B/0JsUfBc72eOtIpkXbOd0mMP0HBMY5gXh0sRZydTctNMtB5WzK5jEJFXQg0cszwzC+v K4WrkcFih/F8M1LnwmQQEDKW3CB0pDQTLXYdVEriTe5Wri32KiFZEZifsxy0TRX/lHxi TkUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=uPv+tG+xH4/8TXKpy2AUZkV0xswKXKVEW1BTd8OSKyA=; fh=uXnmJ5tEcEhvea/gV7JtBvot7F0cWOFFSQbIGmq3vdE=; b=AaY0/IVr/WHPlRdjAIN3rUPMTL2o5qlslQu2eNBO+7zSBNTDzqpHGeW6kFJ3WfKHpR cVm1KV+uYbqWTEaqbIYLu2l//4JOfEBLYZZRSoZ41EAtPjw6I2xo4pReNF+N56pwGpUP 3BMN5zqVJgwYXk1JXv4jTGjBSZ+ayeK4PWqiuIHcRotKiAWg3rurIuMwztDrEZ9tV2yZ 37Yxjl9gsF3dz55sbTJYODQ61SuL2FYBVFPBg5fKKmkA3oeZyFYS7v/yYIEDr+f6Y7eO r3V/OOsr+fmGGd0X6d0N/HqPU7YxcNAhW0sgXcZA93ba24Kw2lCMtADZsH2endX+zaTt qZ0A== ARC-Authentication-Results: i=1; mx.google.com; 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 142-20020a630194000000b0055bc22dcbbasi2792839pgb.800.2023.07.21.06.52.06; Fri, 21 Jul 2023 06:52:19 -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; 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 S231439AbjGUNqw (ORCPT + 99 others); Fri, 21 Jul 2023 09:46:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjGUNqu (ORCPT ); Fri, 21 Jul 2023 09:46:50 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCBD41986; Fri, 21 Jul 2023 06:46:48 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="433255150" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="433255150" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2023 06:46:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10778"; a="728103153" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="728103153" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 21 Jul 2023 06:46:34 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qMqSj-006s0v-2p; Fri, 21 Jul 2023 16:46:29 +0300 Date: Fri, 21 Jul 2023 16:46:29 +0300 From: Andy Shevchenko To: Stephen Boyd Cc: Alessandro Zummo , Alexander Sverdlin , Alexandre Belloni , Arnd Bergmann , Bartosz Golaszewski , Conor Dooley , Damien Le Moal , Daniel Lezcano , "David S. Miller" , Dmitry Torokhov , Eric Dumazet , Guenter Roeck , Hartley Sweeten , Jakub Kicinski , Jaroslav Kysela , Kris Bahnsen , Krzysztof Kozlowski , Lennert Buytenhek , Liam Girdwood , Linus Walleij , Lukasz Majewski , Mark Brown , Michael Peters , Michael Turquette , Miquel Raynal , Nikita Shubin , Nikita Shubin via B4 Relay , Olof Johansson , Paolo Abeni , Richard Weinberger , Rob Herring , Russell King , Sebastian Reichel , Sergey Shtylyov , Takashi Iwai , Thierry Reding , Thomas Gleixner , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Vignesh Raghavendra , Vinod Koul , Wim Van Sebroeck , soc@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-pm@vger.kernel.org, linux-pwm@vger.kernel.org, linux-spi@vger.kernel.org, netdev@vger.kernel.org, dmaengine@vger.kernel.org, linux-mtd@lists.infradead.org, linux-ide@vger.kernel.org, linux-input@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v3 03/42] clk: ep93xx: add DT support for Cirrus EP93xx Message-ID: References: <20230605-ep93xx-v3-0-3d63a5f1103e@maquefel.me> <20230605-ep93xx-v3-3-3d63a5f1103e@maquefel.me> <3fcb760c101c5f7081235290362f5c02.sboyd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3fcb760c101c5f7081235290362f5c02.sboyd@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL,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 On Thu, Jul 20, 2023 at 04:27:45PM -0700, Stephen Boyd wrote: > Quoting Nikita Shubin via B4 Relay (2023-07-20 04:29:03) ... > > +static bool is_best(unsigned long rate, unsigned long now, > > + unsigned long best) > > +{ > > + return abs(rate - now) < abs(rate - best); > > Another case where we need abs_diff() so that it doesn't get confused > when trying to do signed comparison. Here you are: Message-Id: <20230721134235.15517-1-andriy.shevchenko@linux.intel.com> -- With Best Regards, Andy Shevchenko