Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5365965rwl; Sun, 8 Jan 2023 13:49:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXtH9AWhMzwqtOIufGJN3gfCJvVZh5CkmDvnyW11JRqzvlAfGQD59IVQvW4vSB+Q6QAE5net X-Received: by 2002:a17:90a:664a:b0:223:ff2e:ca5c with SMTP id f10-20020a17090a664a00b00223ff2eca5cmr64763931pjm.42.1673214564845; Sun, 08 Jan 2023 13:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673214564; cv=none; d=google.com; s=arc-20160816; b=DUGQmUmPG+lrtqXutEhx1Xl1scrLScXGIetfeQUd7gpxPiBjrl+PCYRSRyrxG+2ho2 CQg6S0C3z7njWPfRKk7JoJe28bW+8eyJiTLI5Bob2XR3456YgDjxyfPQ6+1hbtkh9tST G4OgBda9w71+Cca5P0XgIeR5+c1PQQOB0ZMgSCyA3MmEYhbu4VnuTHd9wMmzsQm8KjlR QdgWn4NJT4IpqFc60ekucldaCrCeNtBJDHrysLMNMFPyk14M9+ctw+k6xlbTh3LXDhYt a5oSk3mi9go4DR2vZ5fVgxBYndO2BtU93VS6/tcd3OB45phEZa4UQprWaHrDXmIXaNVY M5WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=crpfjZM94sBjTdlu1shG1LkqjgfplZcyyBtcQUiOMZo=; b=tqB2fEqVDJiNoanX/ZCN9oCROhRBh+xkD5WnKZCTcxX6n6p+nAiRE5y/tENHtrcv8D AmJfmIb7Gip445vJTy/+RGchdxf0L4Vi8SIxijOo44hBlaBPO06eYBh1DgXuXBVcWBoO A66PFH1q4vywYc04BqW0oQCxrw90bfFegN4BhfI0cD1UBdJivDHhd+GUvFl8CYcasoMv NdFbA0uZ3sFwQ3+9KwqFSHi6LqwU1KtSNvkutO0esV/wdqxO46AbBw2u0JphxF3pUU5B +bWZNEPlfeKKdf8xSEDJmre/jNBKD0c2RPUE23OHumHgOz8W3fCgOW6Gisov3KmmDvIG E1jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kKwYSHIw; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h184-20020a6383c1000000b0048e225a6ec4si8144403pge.357.2023.01.08.13.49.17; Sun, 08 Jan 2023 13:49:24 -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=@gmail.com header.s=20210112 header.b=kKwYSHIw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233542AbjAHUzx (ORCPT + 51 others); Sun, 8 Jan 2023 15:55:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233762AbjAHUzu (ORCPT ); Sun, 8 Jan 2023 15:55:50 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89FD210B54; Sun, 8 Jan 2023 12:55:48 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id tz12so15536902ejc.9; Sun, 08 Jan 2023 12:55:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=crpfjZM94sBjTdlu1shG1LkqjgfplZcyyBtcQUiOMZo=; b=kKwYSHIw+6aI8aCXdVDcWaaFk5UXs3VY6mf4QkJwi7JLvFClmNB+5gh/OV0YFQL9e4 K7FgzsbXRsvhTanibJikhGZg2Y3n/gpGYwDRMksGkCsdVvQ+p4D80us2LIqBaKpmXNKk FrzC/FJ+2xvNV28VmIvOv4fzchKqXKfeKLYGHV7K1IvfqmpKrpjf3RJJ1eAIzOrxXYck WA9OG7SLz1GsAa/v84UDSnggnxa27Ej72lIaUyvPWyAuI4rEoN+FxP5eUMfT+3iHqqUv RIyp/jYdLjrwwkI3wP/pJdf24Et5jZkrK3NMKvkXQCBmB31c602BRep3MJSnlQF/IeqA PWHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=crpfjZM94sBjTdlu1shG1LkqjgfplZcyyBtcQUiOMZo=; b=Pwz4KnDr9ampVgcM9tjrno66Rw+FDBgKU5LVdp09GeS8OIom/vfrDyxt0GP9zmuj8d aCOGRhm+1GN1t9dZ92ZqM/oyTnyvWd3JRDy9pw5Ry3YfIeq1Yp2hv951vQnIel6vpd4t dulGKXNjPn3rY5duajTT5pqlW8521/ArtjrFY9M5JelPoQzDJ9j979iWAcE4g6oRqSwK VX9sU7fz2vby+iZWtoDX+OLoVORybb3I1rpIQ5K4ps2sOBnrK469BmuONrBcSJeNQR5M ZJnEVazn5twei7GgmYm+Tg9XFH4RPyx1m+qtIAIU91A7OXVHl5izGUudZNL7/BxsbRPq eAWw== X-Gm-Message-State: AFqh2koEOXpeyMddC5wNW6Cl3NEhIEKSMnOaNo10l/MfN1fKbcqu9yaX esXlQnLhjOVsI5WOVms3Ymc= X-Received: by 2002:a17:907:4d8:b0:7c0:9a2f:ac93 with SMTP id vz24-20020a17090704d800b007c09a2fac93mr42824575ejb.31.1673211347114; Sun, 08 Jan 2023 12:55:47 -0800 (PST) Received: from jernej-laptop.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id ti11-20020a170907c20b00b007c10bb5b4b8sm2849210ejc.224.2023.01.08.12.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 12:55:46 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland Cc: Samuel Holland , Michael Turquette , 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] clk: sunxi-ng: Avoid computing the rate twice Date: Sun, 08 Jan 2023 21:55:45 +0100 Message-ID: <3433729.QJadu78ljV@jernej-laptop> In-Reply-To: <20221231173055.42384-1-samuel@sholland.org> References: <20221231173055.42384-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Dne sobota, 31. december 2022 ob 18:30:55 CET je Samuel Holland napisal(a): > The ccu_*_find_best() functions already compute a best_rate at the same > time as the other factors. Return this value so the caller does not need > to duplicate the computation. > > Signed-off-by: Samuel Holland Applied, thanks! Best regards, Jernej