Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1953084rwb; Thu, 17 Nov 2022 04:40:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7tvmTeajzJEfIcxNq/SLBG6z2aRWs4bm9bUp++CssKUghV7SZ5ozdBP/fP3DQUSars8Yyo X-Received: by 2002:aa7:91c9:0:b0:56d:8e07:4626 with SMTP id z9-20020aa791c9000000b0056d8e074626mr2697855pfa.70.1668688835456; Thu, 17 Nov 2022 04:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688835; cv=none; d=google.com; s=arc-20160816; b=CXQ/ywh8doyZcqRmBtqhAOP5gV5bPHwPo4OsW2Yz7LvFpPQejtUT4fbzdFWBlu+ltv Vx7/c6uOV4jKbz+/760qWWbQkgnzys95T2Og2IC9yRFfUk3BcLhik8UO9yCkjL0sRSoy eKd6R7CLf/h1d3IzNYF1zlvel+14o/vz79jn2l+4P76Yj/KHjJ1bGcT7zSgez2CHkeK9 LyZgD1QRdZNZPQgBnxKXLa9+a14ey7ZhK4o0mzIVYheiu7Bs1hswATrlYAyT2s9OYQlw RkQSWTohDzCvO0R0kLllzIAG55Kk0loK3RhOfw6BoQAAvCmUTncMoMtq85+sQ4lw9Tys FYlg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GLoVFChROJ5V36ljC1bNCZRvnBVgO9ssi1DRcUAdvAk=; b=Amwv1Kt1cj3PwlmZExxGM62wZcT4vEIyPxU1D7WGsVV+FHx2MU1ux4bh9lXY6ONmp9 tKoGercXgNP55tsCiswjMXvriEeK8ga3xRC7be1rmpdmwCU9An8O+rIJaQs1nXHkA6Hk TBwbNHOqYC5HWnj8U8u7YUYW2xaDACclcQYdDner3tTJ10YiENY91Bajd+sDizMjd8L4 QoUVs66b08LNyOLv82S6QDFRmfeXwHP8RRP54YLRFM+cZ8lEIoKdf9+ewx9+naiXbtEq NacHbHDe7xXoVBosWF5IiiJBy/xV5iV22Xlb+81Rip6x9ieeicsh6mLAZon9XZt2tg/z h0cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NJGWsdlu; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 12-20020a630d4c000000b0046fc9e82c99si829635pgn.206.2022.11.17.04.40.22; Thu, 17 Nov 2022 04:40:35 -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=@linaro.org header.s=google header.b=NJGWsdlu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239501AbiKQL60 (ORCPT + 92 others); Thu, 17 Nov 2022 06:58:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239788AbiKQL6V (ORCPT ); Thu, 17 Nov 2022 06:58:21 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6E66E564 for ; Thu, 17 Nov 2022 03:58:14 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id 4so1442730pli.0 for ; Thu, 17 Nov 2022 03:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=GLoVFChROJ5V36ljC1bNCZRvnBVgO9ssi1DRcUAdvAk=; b=NJGWsdluGlnqtVYNGjjNX1DFoLalmku5FeE/yJwRBIyMjzN4IDelPx29JMqCdCKP78 B8y6LxM56UiJqigX7MDHT4BYu56C6F2XUSLBJHvveMztS/lO2u3HCnALmkO9sO1O+WRA mCWXfDQ2QohNau6Qv+0Fk2qOvd4krKcr3VMe/5dv3RHZjiB0q3dzu+w5QBH6iheLztkl UC/Eyfzz6oz9qpvvRFj2lI5SK+IwaN7XZIjO0jWi0fV8YDhYDQueq/6PYt1vTCnZEooN iQ2N89hs4AuIEAvo9fK6z1/eYlgW1IjEkTBU/PZsEtLIhv8GX60uARcUaF7HPW+y7cH2 eJPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GLoVFChROJ5V36ljC1bNCZRvnBVgO9ssi1DRcUAdvAk=; b=duuuHq/73vkqNPMkSFmPxavOe6pAs4qWsh6lCkTgS1d6Jf4B0Q4dTt6fDI+dZruRPF gicK0xjm91VYSXrvbg3OxNMZiNhBnwyXKCM/PA0CqIGxovT1e0tnAmzZyat0bnVLnoU7 UC5lnfUMoJslwtbyWAy4I32ujv4/5d3HvDY79O2QHD4jUINW0iEKdAt6OeO/4XdIuF5/ UMv9DNxxijpV/L4n2lx5wSmUaFIfysTbh5GKHGLAAuGd9RvnbuLDojwERWhv2SsJ/Dyy B/+kB28scohp60rqTdnoo9nlty1qWhoqfWgEDQe2vySqZFeko1V0/ZX1dbwpVHJh4dGB g3gA== X-Gm-Message-State: ANoB5pm5FTdhO2YkjDYJa4GL14VdSRYjtW6hKgho28t2i43CfqSOuIkR Dclh2arJrzSceQr8lDlksfyM X-Received: by 2002:a17:90a:398f:b0:213:5a55:7dd2 with SMTP id z15-20020a17090a398f00b002135a557dd2mr2559599pjb.50.1668686293696; Thu, 17 Nov 2022 03:58:13 -0800 (PST) Received: from thinkpad ([117.193.208.31]) by smtp.gmail.com with ESMTPSA id z4-20020aa79f84000000b005626a1c77c8sm952665pfr.80.2022.11.17.03.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 03:58:12 -0800 (PST) Date: Thu, 17 Nov 2022 17:28:07 +0530 From: Manivannan Sadhasivam To: Sudeep Holla Cc: andersson@kernel.org, viresh.kumar@linaro.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, robh+dt@kernel.org, johan@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v7 0/4] qcom-cpufreq-hw: Add CPU clock provider support Message-ID: <20221117115807.GF93179@thinkpad> References: <20221117053145.10409-1-manivannan.sadhasivam@linaro.org> <20221117101903.sw3hxaruj5sfhybw@bogus> <20221117111207.GA93179@thinkpad> <20221117115203.356vexlpca746o6m@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221117115203.356vexlpca746o6m@bogus> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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, Nov 17, 2022 at 11:52:03AM +0000, Sudeep Holla wrote: > On Thu, Nov 17, 2022 at 04:42:07PM +0530, Manivannan Sadhasivam wrote: > > On Thu, Nov 17, 2022 at 10:19:03AM +0000, Sudeep Holla wrote: > > > > > > Why do you need the above 3 changes if the below(4/4) will ensure > > > cpufreq_get(cpu) returns the clock frequency. I was expecting to drop the > > > whole "confusing" clock bindings and the unnecessary clock provider. > > > > > > Can't we just use cpufreq_get(cpu) ? > > > > > > > This can be possible for OPP implementations for the CPUs but not for other > > peripherals making use of OPP framework like GPU etc... Moreover this may end > > up with different code path for CPUs and other peripherals inside OPP framework. > > > > Fair enough, you can use this for non-CPU devices. But you are adding this for > CPUs here. Is the consumer unaware that this is a CPU or non-CPU device ? > If so, make sense. Otherwise, it is unnecessary to go through the clk > framework to get CPU frequency. > The consumer here is the OPP framework and yes it doesn't have the knowledge of the device it is dealing with (for this context). Thanks, Mani > -- > Regards, > Sudeep -- மணிவண்ணன் சதாசிவம்