From: Chanwoo Choi <cw00.choi@samsung.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
hl@rock-chips.com, tjakobi@math.uni-bielefeld.de,
chanwoo@kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Linux PM list <linux-pm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] PM / devfreq: Add suspend frequency support
Date: Tue, 31 Jan 2017 09:33:39 +0900 [thread overview]
Message-ID: <588FDB63.2080105@samsung.com> (raw)
In-Reply-To: <CAOh2x=mwykUBLstKTmUooa4VSpXwaokHraDHHjqW_u9sDsDsnw@mail.gmail.com>
Hi Viresh,
On 2017년 01월 30일 13:50, Viresh Kumar wrote:
> On Wed, Dec 28, 2016 at 5:37 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote:
>> +++ b/drivers/devfreq/devfreq.c
>> @@ -620,6 +620,23 @@ struct devfreq *devfreq_add_device(struct device *dev,
>> goto err_init;
>> }
>>
>> + /*
>> + * Get the suspend frequency from OPP table. But the devfreq device
>> + * using passive governor don't need to get the suspend frequency
>> + * because the passive devfreq device depend on the parent devfreq
>> + * device.
>> + */
>> + devfreq->suspend_freq = 0L;
>> + if (strncmp(devfreq->governor_name, "passive", 7)) {
>> + struct dev_pm_opp *opp;
>> +
>> + rcu_read_lock();
>> + opp = dev_pm_opp_get_suspend_opp(dev);
>> + if (opp)
>> + devfreq->suspend_freq = dev_pm_opp_get_freq(opp);
>
> The interface has changed a bit recently. Can you please use below
> function instead ?
I knew. This patch posted before applying your patch.
>
> dev_pm_opp_get_suspend_opp_freq()
This patch has not yet reviewed by devfreq maintainer.
So, I'm just waiting the review.
But, this patch is wrong on latest opp patches.
I'll fix it and resend it.
--
Best Regards,
Chanwoo Choi
Samsung Electronics
next prev parent reply other threads:[~2017-01-31 0:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20161228120710epcas5p2e373f06f70639bd005eba80fa36a59ce@epcas5p2.samsung.com>
2016-12-28 12:07 ` [PATCH v2 0/2] PM / devfreq: Add support frequency support Chanwoo Choi
2016-12-28 12:07 ` [PATCH v2 1/2] PM / devfreq: Add separate target function Chanwoo Choi
2016-12-28 12:07 ` [PATCH v2 2/2] PM / devfreq: Add suspend frequency support Chanwoo Choi
2017-01-30 4:50 ` Viresh Kumar
2017-01-31 0:33 ` Chanwoo Choi [this message]
2016-12-28 12:09 ` [PATCH v2 0/2] PM / devfreq: Add support " Chanwoo Choi
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=588FDB63.2080105@samsung.com \
--to=cw00.choi@samsung.com \
--cc=chanwoo@kernel.org \
--cc=hl@rock-chips.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=rjw@rjwysocki.net \
--cc=tjakobi@math.uni-bielefeld.de \
--cc=viresh.kumar@linaro.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