Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3867484pxu; Tue, 20 Oct 2020 02:34:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx888of13EyrEsYnlBwEmRM2deW7fYyjXJCz/+MWDM7udF+OfNUKwLRMMZR8+BsvTASDbyA X-Received: by 2002:a17:906:2749:: with SMTP id a9mr2301743ejd.457.1603186458674; Tue, 20 Oct 2020 02:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603186458; cv=none; d=google.com; s=arc-20160816; b=YdOzXhYd0UcDvLmO3od6m2wQSUMj+GVQ71HNyeMbJ1ECmBjGsZW0AiLqvuh/TPFqnd +NAuPRri8t0smrTPa4F2rtUpDLGQgfc93h+S1NjPpSCLqH/uKMnr+0OGQGs3i1fZGlzC orDHsGH2IzF1pEz6VfaaRDNpwR3aBAlf7RCIHKOB0CBpLLEBdqQE/tOv+GSXrLYgsuj+ P67swO2kyGE8oRnSVQpyereQUznBZ3TS/fHeYlvN38qpzPhPfcZ0GXgaw0aEnYYx6iVl HuGa+ss42maMIAZ21fqkGG/i2AIdXwt/EDpvppdc1XYdJV/lqJqYZj9VHgx3AYj9ew8h r9kw== 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 :dkim-signature; bh=nxPLYxHdSRuqO69/xXr8NI7f9DVIeX37mXrRDJrlqP4=; b=PMrjJ+eee7mGXUmpQGq/Nqo2p+IDAbmva96RMqJMFWl+0NpxN6BaNhzvvJC/5ioSxd Va07FtPlMn5/XUxdndI3rbqvZ3DhyaRyf7cHCC8jkW48jPgfpyXMgmnOJ6mSzxsUrQIQ +EpVaNs4aRwgoz8FBQDQCUmxFZyNZ/FTEYVy4DLLvofNQjg2mtie2pXPZRle5+D5wHeT AONmSAWSbNF3H1KWcP1a8yqy4nyZV7/4JY9+jc04DGlIEOlwi1WSgCWpzuuNgvIXZC1Q 3MsIR5ijX1bqfRIcsX3+9o7zCvxT55z/Z7MQTFTE8dTN03WRshBLJb4ZxsJccaOLyAun VAfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hTFFYg06; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si815576edc.21.2020.10.20.02.33.57; Tue, 20 Oct 2020 02:34:18 -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; dkim=pass header.i=@linaro.org header.s=google header.b=hTFFYg06; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391781AbgJTFyh (ORCPT + 99 others); Tue, 20 Oct 2020 01:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391775AbgJTFyg (ORCPT ); Tue, 20 Oct 2020 01:54:36 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39A6C0613CE for ; Mon, 19 Oct 2020 22:54:35 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id h2so427193pll.11 for ; Mon, 19 Oct 2020 22:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nxPLYxHdSRuqO69/xXr8NI7f9DVIeX37mXrRDJrlqP4=; b=hTFFYg068bv/W8wuD+QXGdT0tMoV6sqmmj4MLZrSIA7P/6xmFIUQRjMjh5ixEuk9+s bnL+AhKmOrliT6pyNsBC6gnLAROnpdS5jTPDG1uWo7jKcREf9Ef+g4w6ypu8Q4e2vKSi WMXD01+vNIqSPzTbJ6r3aCTbzTeJ8xrzw6rckG4G/b87xYNnD9o8WTTf9Qse37xk0dpw 8lj66QqurDpcCyjh3V2xc3uoZN894smzqIMx6JTjJ0avH/v7VrmhSBNX9W4Ptc9epfUs PUEncy4LDJq/ktDFWCXuQaG6BKsbM+i0lNT2ycElQvwdJcpPXIMIZYNrnNW4kI6bDO0H Svfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nxPLYxHdSRuqO69/xXr8NI7f9DVIeX37mXrRDJrlqP4=; b=Fmm8WH2b+T9ltQC3tT9El6fBSgrhKm3mLL6HBzV7WMESaCO+xBdBDHwaMb1+Ue29ay AmDyPeecw6rTuPJE1UG/nKNvbW/IpdE2wQsLIaxu/4X6Hz1JPTVG8tTAWPF3Tf8v4JMP aCwwCcru5k8nYc5pBrbkH6SoAYd9CQ58oTYmwyrwy36UbEuCIvxPMFlGGUknpDB9GrRI fDrtio86oeqpR2ziYmOtGgFLpCHGhuYtZYAsycxJqzZBNzueCbS1ivQSzyDdNQx2/c1f zGBgGA2wEVWbHbj6ZUMSmsGD80mhdTJ5IArakE29DpLMy0OejWKUkppl+o4cKoGA5Kkl ZoUg== X-Gm-Message-State: AOAM5308FIp7WDwDQJq2Z+vvcOg4PjACJT6B4bSsLllG6Ntt6+oGDYpS O2MGhy8xzig6IWX2+JN9ZcawCw== X-Received: by 2002:a17:90a:420b:: with SMTP id o11mr1392148pjg.142.1603173275044; Mon, 19 Oct 2020 22:54:35 -0700 (PDT) Received: from localhost ([122.181.54.133]) by smtp.gmail.com with ESMTPSA id c12sm654902pgd.57.2020.10.19.22.54.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2020 22:54:34 -0700 (PDT) Date: Tue, 20 Oct 2020 11:24:32 +0530 From: Viresh Kumar To: Sudeep Holla Cc: ulf.hansson@linaro.org, "Rafael J. Wysocki" , Kevin Hilman , Pavel Machek , Len Brown , 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: <20201020055431.ln7d57x76f7z6j5k@vireshk-i7> References: <20201016042434.org6ibdqsqbzcdww@vireshk-i7> <20201016060021.sotk72u4hioctg7o@bogus> <20201016111222.lvakbmjhlrocpogt@bogus> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020050557.a3b2nk33eeyxnvl2@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? -- viresh