Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3930390pxu; Tue, 20 Oct 2020 04:26:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+ToAEWlCcG7XxyFSxLviMq/dg9zUJMG5Y/5loJDrdsV8okzCE7pKg6Fwf3qcrpgKcL1bD X-Received: by 2002:a17:907:2179:: with SMTP id rl25mr2683446ejb.450.1603193208216; Tue, 20 Oct 2020 04:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603193208; cv=none; d=google.com; s=arc-20160816; b=AlVsyRh+xF1CuCYHHGzjIc4cs9us9h65Eo3JwQcYyL7kDLMpZit6DPcgSPP5tOARGF oypq+7ff8QmMhC9frN+7njG+0uCti0Zqb12vBtIsOovIE7yneokXQtcosyl6Sddb440j F9D2iUBnUlXjg9P+qzomxIKSRuagiZ9NsXqMi+l2yy/YSJPo7LgfAGyS9ZGAGRbqUhr0 w2eILm5bdsEfdmMpwKR1A8RHltXRbKStqmLFS0u9gzrLqTEvPqaEfu5BByWy0bPICLue r9WYe1NRKVipv6zjpC4yoVGNzMJnbr9xiPk+UfQh+akEOeEtqtII0LdwF4rjdbcczyRH 7HQg== 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=w6nF/0dbZEKqy03x0aQL4VJByv7A5fZiX1rs+a/9SYc=; b=v3tSOha4RzLcVTVvLAeyCbUHOZziQmUySW108EycFtQMJc7S+V5+ctUyStjJ/qWCgZ XAl8lLJSxQyXTXfqj32bzo39Z88r59IMz6Lbo/G+tewvqYZx5Gywj9vPsXbTgtNLiXfE vOHd42+vhRDP9l1ZOQT5jCH876wTswYG2w74kJHW88J8Dxloh2xP6YV8LiVPz1xOTFkr uENaXEkhfHqZzTQma2b6MqerySYsv3ehyf/GV78D6X+1QAvrNl0nKckyXw8RcefeHcmX fZQaCCDujuOD81ilEkTBcgxPVY3CIwJFVYkqv0K3L04M7LcGuDL5fsp1pKblBN3TqIgL X7mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GWotkPzn; 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 d10si930780edm.314.2020.10.20.04.26.26; Tue, 20 Oct 2020 04:26:48 -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=GWotkPzn; 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 S2403769AbgJTJlk (ORCPT + 99 others); Tue, 20 Oct 2020 05:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403761AbgJTJlk (ORCPT ); Tue, 20 Oct 2020 05:41:40 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFC9EC0613D1 for ; Tue, 20 Oct 2020 02:41:38 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id 1so749615ple.2 for ; Tue, 20 Oct 2020 02:41:38 -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=w6nF/0dbZEKqy03x0aQL4VJByv7A5fZiX1rs+a/9SYc=; b=GWotkPzntM5cJlUp/P5Y+QWrES8Pgtp/qedhgN2Z40yk84stamc2gtqLshNRYbj/uG MTXXN65l/L5LBek54IMPbPsePneuj2StrruKxPlqLiIHvncF0slaS8qGljT9n/T5Jbi1 mXz50nHJAqkedemsjK5/NyVl+RalCdhB+eb11vzqDNYmM+giN0CIXa3CSfSNz3A4GkiS a1LQ3aMar8OsNkq2BnyK19jtqN+NQ5lujMUPaFueo6YnG76XLTQYTvMayUjCCxlk8NxA 7TnHsyYgJ7+VoGOvAks9O0P+2oHGpordOenk7NmA5LyQxvmU1qT2aSJ+36+6Ef3Ydf/E r+MA== 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=w6nF/0dbZEKqy03x0aQL4VJByv7A5fZiX1rs+a/9SYc=; b=EqmlifB1RH0WJEm3CE8O6lc7ndXrRnMLtq3tUGKECkqbL5Ge4BE92tE3vA379j38ve or8HN7hJMcYq5XYOk0GdrPQ80RoVHWs2DVupPh2fIHoQNWr4WHLe0xl2/BYKqhN3rIhb OctLtiK4bTx+2ivaIqQYlpZYkyHzVG4hkvlIYdxDG/iFcPHmOyP3UDZSy3sMZjArswYH k31dy1ubNrLoVw0wFqflC+X0NXLq8OP3aAQEMYDj2ckLTBy3d74sZDe93Wav648W4091 p/0RSYoQ9KQu7mvWemqT/SMLv3YjGhpgz8ZL1Qs/yCsPiPx3NqWrTf0+RQes1YsMtBYE be+w== X-Gm-Message-State: AOAM532nIUOUAnweKotCeeru2JAFfZ82XuAMg8IAC8IWf7Xo5GAxCuCo hY4NUjjKYiVQidyGwCzTj6KuGg== X-Received: by 2002:a17:90b:d91:: with SMTP id bg17mr2108773pjb.66.1603186898403; Tue, 20 Oct 2020 02:41:38 -0700 (PDT) Received: from localhost ([122.181.54.133]) by smtp.gmail.com with ESMTPSA id x18sm1540708pga.49.2020.10.20.02.41.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2020 02:41:37 -0700 (PDT) Date: Tue, 20 Oct 2020 15:11:34 +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: <20201020094134.natqnyp4zpfw3p5p@vireshk-i7> References: <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> <20201020055431.ln7d57x76f7z6j5k@vireshk-i7> <20201020093745.GA10604@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020093745.GA10604@bogus> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? -- viresh