Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1940038rwb; Thu, 17 Nov 2022 04:29:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf5hZB72bE7vxpV54ecCiVyD9koq0rtWNw75uFWdI300mAHSzkwxyW/Tgg0KJphMCUxJxg7z X-Received: by 2002:a05:6a00:138f:b0:537:1150:26b9 with SMTP id t15-20020a056a00138f00b00537115026b9mr2735303pfg.37.1668688175967; Thu, 17 Nov 2022 04:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688175; cv=none; d=google.com; s=arc-20160816; b=C7EFkJ8KfpZCIbHGaXa5SsHfzqHcY/9SZAc0+Nip3v6dwlpmCUyQ028AIjldSSsRNN jutlCaOWhAcZqDYkRhFt1lpA09uKifoSBiXQlNSESY+CRWov2RJJB1GXWHvLX5ftwCbI 9vRvlTFLrGEn1DNQdcO8DLr1qzD7L+alTraFHajLtHB0f448+CnzhQvjGjORAXc25+Wm 8uEBWWUJXditb9mKsGdR48fiMTUhpHKsZ9aDDlyG7goCRq8oASPBHhyE7WESoZAS49i+ bUbbkXSzPDLYcgrhNxzFvQJ7rwBqfgN8VTD2lWOtbUjDm1EEfgK7iA6jW8ABnXeswCc0 zhGQ== 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; bh=WrcUFLMK3W+WQThYzRHxLKle3plRI/PBDd5BgepxlFo=; b=XX5lBwED/noKTgCqlZwqp1ckq9K8lWhojiJmW+4jCcRf/ygfL8L3MREWL4B8dAxvdB 3n+3qANsMqpypnjnO5/rXy8IedxlXfJb4HusCowTweW9/djUJv4aWjceOyvnmwhOm9H8 tQarocJ2HPp2gbZXXfQWCZvkrFXRtV3HV/k9/Lx3vyVVlPk2BBGpIqEVz5LGDDrugTHT gjXUdNgH85HZsgsoy9p+EP5qnOK8bD1Bs1GzytLPopBVlXPjGB5yhYQ/g87/7GMEDatB BQ/kUOfHalIcs1y2fD5ziSMk7YZ3WtxSI56dW3eRjkiQNDREh1yJGMVCSDxeuAf2+PQg L2gQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a056a00135200b00571e1bb9312si774477pfu.173.2022.11.17.04.29.24; Thu, 17 Nov 2022 04:29: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234855AbiKQLwV (ORCPT + 93 others); Thu, 17 Nov 2022 06:52:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239478AbiKQLwJ (ORCPT ); Thu, 17 Nov 2022 06:52:09 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F33E93B3; Thu, 17 Nov 2022 03:52:08 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 176D713D5; Thu, 17 Nov 2022 03:52:15 -0800 (PST) Received: from bogus (unknown [10.57.6.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 33E483F663; Thu, 17 Nov 2022 03:52:06 -0800 (PST) Date: Thu, 17 Nov 2022 11:52:03 +0000 From: Sudeep Holla To: Manivannan Sadhasivam Cc: andersson@kernel.org, viresh.kumar@linaro.org, Sudeep Holla , 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: <20221117115203.356vexlpca746o6m@bogus> References: <20221117053145.10409-1-manivannan.sadhasivam@linaro.org> <20221117101903.sw3hxaruj5sfhybw@bogus> <20221117111207.GA93179@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117111207.GA93179@thinkpad> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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, 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. -- Regards, Sudeep