Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3929477pxu; Tue, 20 Oct 2020 04:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWMOMYNCpsj3XJBl8dMJlXpz+yEEqLOBj15SxDARA+W2dKpGSLaAc0vogN5jhTRZ5NCce0 X-Received: by 2002:aa7:c491:: with SMTP id m17mr2196255edq.299.1603193113267; Tue, 20 Oct 2020 04:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603193113; cv=none; d=google.com; s=arc-20160816; b=bSW31aZY5PxP8NZ1NeZMyV7A8Q8PKXrXSiOHptS5i9QVrSL6IG6iX3azzBfjEl+0JR TI0qeSW0SihriEI17yg3Bys1A+LzM7wp/Om4Iye4gEvTXV8mBlIeR9tkCA3Mr+W5+V6A sfpiQECAv5o8zEePV0ySKknz6jAxJlIp3wIPHnYdSadkGjh9rLk+MxlTF8c+enl7QWu5 8C0skBkGCBmE8A2zNNVRdioQdNEvbUg/ucn7pf+FaQ6MEX9ia331qGE2KZrO7qMe4r6R CHLTGdunSWFYFA5NXild4A3GiiERVa9uFXNy8QG75bDvKkuMYccBHfXz3L8Jd6RHxbok bCfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+yg3a4cUMdaXQEnHgcEXG7jRjrqFVTy9WsxElmR4/ls=; b=F4mQk67giCBaIjd6EAw6bkN5qltY1A2vhjCapTffB23nY3efsird6s2apOnfqzmzuC 7EoqmD51kb/dpwr8Xf2ZnmVmaL2XkSNvDuq/L3pOzOeNQwF37iD+XgJAv8amLMi7kWhy JAfqIGyTiC0efp3mEVLcOyZV0cL1bbl7WLsW5vrYvgNxVA7FktG5SB1FLbvflJ041Fdt wcLR6ltytitLYJbntmqKxM5GSR0DGO6mL8ruVq/HDdzhoSpD+HkA6vRLiZI+PTPTZZDR k/ZEgVi3+ruoBeo3e+UDau3cvT5fFynrUQCz41koqXtCeVxEJVyfY08F7iFidbBH5bU5 FeIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si1408838ejc.514.2020.10.20.04.24.51; Tue, 20 Oct 2020 04:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2404447AbgJTJwM (ORCPT + 99 others); Tue, 20 Oct 2020 05:52:12 -0400 Received: from foss.arm.com ([217.140.110.172]:48822 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731041AbgJTJwM (ORCPT ); Tue, 20 Oct 2020 05:52:12 -0400 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 47554101E; Tue, 20 Oct 2020 02:52:11 -0700 (PDT) Received: from bogus (unknown [10.57.22.167]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3AB383F66E; Tue, 20 Oct 2020 02:52:08 -0700 (PDT) Date: Tue, 20 Oct 2020 10:52:05 +0100 From: Sudeep Holla To: Viresh Kumar Cc: ulf.hansson@linaro.org, "Rafael J. Wysocki" , Kevin Hilman , Pavel Machek , Len Brown , Sudeep Holla , Greg Kroah-Hartman , Viresh Kumar , Nishanth Menon , Stephen Boyd , Kukjin Kim , Krzysztof Kozlowski , linux-pm@vger.kernel.org, Vincent Guittot , nks@flawful.org, georgi.djakov@linaro.org, Stephan Gerhold , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER Message-ID: <20201020095205.GB10604@bogus> References: <20201019045827.kl6qnx6gidhzjkrs@vireshk-i7> <20201019091723.GA12087@bogus> <20201019092411.b3znjxebay3puq2j@vireshk-i7> <20201019101241.GB12908@bogus> <20201019103535.ksp5ackoihamam4g@vireshk-i7> <20201019141007.GA6358@bogus> <20201020050557.a3b2nk33eeyxnvl2@vireshk-i7> <20201020055431.ln7d57x76f7z6j5k@vireshk-i7> <20201020093745.GA10604@bogus> <20201020094134.natqnyp4zpfw3p5p@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020094134.natqnyp4zpfw3p5p@vireshk-i7> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2020 at 03:11:34PM +0530, Viresh Kumar wrote: > On 20-10-20, 10:37, Sudeep Holla wrote: > > On Tue, Oct 20, 2020 at 11:24:32AM +0530, Viresh Kumar wrote: > > > On 20-10-20, 10:35, Viresh Kumar wrote: > > > > On 19-10-20, 15:10, Sudeep Holla wrote: > > > > > On Mon, Oct 19, 2020 at 04:05:35PM +0530, Viresh Kumar wrote: > > > > > > On 19-10-20, 11:12, Sudeep Holla wrote: > > > > > > > Yes it has clocks property but used by SCMI(for CPUFreq/DevFreq) and not > > > > > > > by any clock provider driver. E.g. the issue you will see if "clocks" > > > > > > > property is used instead of "qcom,freq-domain" on Qcom parts. > > > > > > > > > > > > Okay, I understand. But what I still don't understand is why it fails > > > > > > for you. You have a clocks property in DT for the CPU, the OPP core > > > > > > tries to get it and will get deferred-probed, which will try probing > > > > > > at a later point of time and it shall work then. Isn't it ? > > > > > > > > > > > > > > > > Nope unfortunately. We don't have clock provider, so clk_get will > > > > > never succeed and always return -EPROBE_DEFER. > > > > > > > > Now this is really bad, you have a fake clocks property, how is the > > > > OPP core supposed to know it ? Damn. > > > > > > What about instead of fixing the OPP core, which really is doing the > > > right thing, we fix your driver (as you can't fix the DT) and add a > > > dummy CPU clk to make it all work ? > > > > > > > I really would avoid that. I would rather change the binding as there is > > no single official users of that binding in the upstream tree. > > But how will you solve backward compatibility thing then ? > I am just betting on the fact that no users upstream means no backward compatibility needed. If someone raises issue we need to add backward compatibility with dummy clk as you suggested. -- Regards, Sudeep