Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1937726rwb; Thu, 17 Nov 2022 04:27:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7xma2S1W6ThBbWwAvIhYcNmdnJn+kmN8pPRQ8QJP279z5GkbtL8jo7rhb61aP4a2yODSid X-Received: by 2002:a17:902:ef93:b0:185:3d08:968b with SMTP id iz19-20020a170902ef9300b001853d08968bmr2575117plb.49.1668688037900; Thu, 17 Nov 2022 04:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668688037; cv=none; d=google.com; s=arc-20160816; b=BscYaohMvlyqL7gSoajcuxBJqq6crzuCWnr0KO3QqX6DUklo/Vud91lG5fMc/nHuh+ ZtxMGDRVd9C9GyShEOKX8y7DCLTByY97kcbR7u0kAT+MOQ8NyCcbhRfvNpRI88jbyOxQ M5WdYKW2tgppzEXzHbKiQKhnKz1Uf+4JeOM9M57qqgMCTD+04rTqU0QIGu1Bj4OmBx2P upQgWHKWGmYI0mAq3hzhTsSjKhhe9z8oZPUdk4NtxXwOxa465hhRj4m77OQk/ONMmQ43 Tn/W7EK0qYIR8Z+DWd2JWrPohdt8Y1roduyKj+mf+oGz9pVz0QXsF5r9AJ0LVh3bR4kV SNpw== 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=3nc8Dc55AH1HdlJj4Q7ygrzS6DdH41M1sGvx80sT/yU=; b=oBoWAcyt3o05Vs79MZ5z6xqREPnSF1MKKrEAQ+stLJan6wRaNI18bjyu8Mp0xlaCRk l3f3rnK3QVlH6yL00dKdi3dJRl7VxYpI8q3f3z85c2SgkUDC/7y9JlKl5yeB0naxcUi8 f3y0pCLJRWbX7DZqNfjjJ5DGDB5/axT8xYP+FlkLNCoiRGGpc1y3Jk3UtWXY96lHaK/1 CPRKFaiEN3lTSnOdxYfLNvDJS17f/ihI8POtS9ZWOmVBMjq32ZUKNrZvjO/9umzQEz8u TBQSAoSnI1SdS5sagNcB1zNlVIZjfXEY5SG4bpezZI2Q28fwtgO3wJHDhP+qo0qPWVR5 vgWg== 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 203-20020a6300d4000000b004403ddda6e6si880633pga.847.2022.11.17.04.27.05; Thu, 17 Nov 2022 04:27:17 -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 S239907AbiKQMCN (ORCPT + 92 others); Thu, 17 Nov 2022 07:02:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239917AbiKQMBz (ORCPT ); Thu, 17 Nov 2022 07:01:55 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 184555B846; Thu, 17 Nov 2022 04:01:50 -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 3748813D5; Thu, 17 Nov 2022 04:01:56 -0800 (PST) Received: from bogus (unknown [10.57.6.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D32B53F663; Thu, 17 Nov 2022 04:01:47 -0800 (PST) Date: Thu, 17 Nov 2022 12:01:45 +0000 From: Sudeep Holla To: Viresh Kumar Cc: Manivannan Sadhasivam , Sudeep Holla , andersson@kernel.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: <20221117120145.ou2pg7obxnwlsc36@bogus> References: <20221117053145.10409-1-manivannan.sadhasivam@linaro.org> <20221117101903.sw3hxaruj5sfhybw@bogus> <20221117112403.haffuclwooudvgwz@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221117112403.haffuclwooudvgwz@vireshk-i7> 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:54:03PM +0530, Viresh Kumar wrote: > On 17-11-22, 10:19, 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) ? > > https://lore.kernel.org/lkml/cover.1657695140.git.viresh.kumar@linaro.org/ > > The basic idea (need) here was to fix the DT and let the CPU nodes have clock > related properties, which are missing currently. > > The context can be seen in the above thread. Thanks for the link. Sorry I still don't get the complete picture. Who are the consumers of these clock nodes if not cpufreq itself. I am going to guess, so other device(like inter-connect) with phandle into CPU device perhaps ? Also I assume it will have phandle to non-CPU device and hence we need generic device clock solution. Sorry for the noise, but I still find having both clocks and qcom,freq-domain property is quite confusing but I am fine as I understand it bit better now. -- Regards, Sudeep