From: Sudeep Holla <sudeep.holla@arm.com>
To: Viresh Kumar <viresh.kumar@linaro.org>,
Ilia Lin <ilialin@codeaurora.org>
Cc: Sudeep Holla <sudeep.holla@arm.com>,
vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, robh@kernel.org,
mark.rutland@arm.com, rjw@rjwysocki.net,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v13 1/2] cpufreq: Add Kryo CPU scaling driver
Date: Fri, 25 May 2018 11:48:33 +0100 [thread overview]
Message-ID: <3aa2ced3-ad14-e02b-6702-c0fd1c48513b@arm.com> (raw)
In-Reply-To: <20180525040536.njrdqjn376oehw2b@vireshk-i7>
On 25/05/18 05:05, Viresh Kumar wrote:
> On 25-05-18, 07:00, Ilia Lin wrote:
>>
>>
>> On May 25, 2018 6:54:12 AM GMT+03:00, Viresh Kumar <viresh.kumar@linaro.org> wrote:
>>> On 24-05-18, 18:03, Ilia Lin wrote:
>>>> +static int __init qcom_cpufreq_kryo_init(void)
>>>> +{
>>>> + struct device_node *np;
>>>> + struct device *cpu_dev;
>>>> + int ret;
>>>> +
>>>> + cpu_dev = get_cpu_device(0);
>>>> + if (NULL == cpu_dev)
>>>> + ret = -ENODEV;
>>>> +
>>>> + np = dev_pm_opp_of_get_opp_desc_node(cpu_dev);
>>>> + if (IS_ERR(np))
>>>> + return PTR_ERR(np);
>>>> +
>>>> + ret = of_device_is_compatible(np, "operating-points-v2-kryo-cpu");
>>>> + of_node_put(np);
>>>> + if (!ret)
>>>> + return -ENOENT;
>>>> +
>>>
>>> I hate the fact that it is taking so long to get done with this. But
>>> can't you
>>> just check machine compatibility instead of this complicated setup to
>>> check OPP
>>> node ? Like:
>>>
>>> if (!of_device_is_compatible("qcom,apq8096") &&
>>> !of_device_is_compatible("qcom,msm8996"))
>>> return;
>>
>> I have to check the "operating-points-v2-kryo-cpu" anyway, so I moved it from probe to the init.
>
> Okay, leave it as is then. Don't send anything yet and wait for Sudeep to
> respond.
>
I have already mentioned that I can't suggest since I don't have much
knowledge on QCOM PM. I see lots of patches flying around these days
with multiple people doing same things in different ways. That's why I
suggested Ilia to check with Taniya or Saravana or SBoyd to see what's
the best thing to do in this context. I don't prefer using OPP
compatible and would go with machine compatibility as you suggested.
But I am fine with OPP, just wanted to make sure it won't clash with
anything else.
--
Regards,
Sudeep
next prev parent reply other threads:[~2018-05-25 10:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 15:03 [PATCH v13 0/2] Kryo CPU scaling driver Ilia Lin
2018-05-24 15:03 ` [PATCH v13 1/2] cpufreq: Add " Ilia Lin
2018-05-25 3:54 ` Viresh Kumar
[not found] ` <DF878CBB-304A-4116-83D5-DF6BCEB7C131@codeaurora.org>
2018-05-25 4:05 ` Viresh Kumar
2018-05-25 10:48 ` Sudeep Holla [this message]
2018-05-24 15:03 ` [PATCH v13 2/2] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu Ilia Lin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3aa2ced3-ad14-e02b-6702-c0fd1c48513b@arm.com \
--to=sudeep.holla@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=ilialin@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=nm@ti.com \
--cc=rjw@rjwysocki.net \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=viresh.kumar@linaro.org \
--cc=vireshk@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox