All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
To: Chanwoo Choi <cw00.choi@samsung.com>, linux-samsung-soc@vger.kernel.org
Cc: linux-pm@vger.kernel.org, m.reichl@fivetechno.de, myungjoo.ham@gmail.com
Subject: Re: [RFC 3/4] PM / devfreq: exynos-bus: add support for suspend OPP
Date: Thu, 24 Nov 2016 15:22:48 +0100	[thread overview]
Message-ID: <5836F7B8.1000409@math.uni-bielefeld.de> (raw)
In-Reply-To: <58364498.50206@samsung.com>

Hello Chanwoo,

Chanwoo Choi wrote:
> Hi Tobias,
> 
> On 2016년 11월 23일 22:51, Tobias Jakobi wrote:
>> TODO: write desc
>> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
>> ---
>>  drivers/devfreq/exynos-bus.c | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>>
>> diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
>> index 29866f7..8a91970 100644
>> --- a/drivers/devfreq/exynos-bus.c
>> +++ b/drivers/devfreq/exynos-bus.c
>> @@ -335,6 +335,7 @@ static int exynos_bus_parse_of(struct device_node *np,
>>  			      struct exynos_bus *bus)
>>  {
>>  	struct device *dev = bus->dev;
>> +	struct dev_pm_opp *suspend_opp;
>>  	unsigned long rate;
>>  	int ret;
>>  
>> @@ -368,6 +369,13 @@ static int exynos_bus_parse_of(struct device_node *np,
>>  		ret = PTR_ERR(bus->curr_opp);
>>  		goto err_opp;
>>  	}
>> +
>> +	suspend_opp = dev_pm_opp_get_suspend_opp(dev);
>> +	if (suspend_opp) {
>> +		bus->devfreq->suspend_freq = dev_pm_opp_get_freq(suspend_opp);
>> +		printk("DEBUG: suspend opp found!\n");
>> +	}
> 
> Looks good to me. But, you have to move this code
> in the exynos_bus_parent_parse_of() because the passive devfreq
> don't need to get the suspend_opp. The suspend_opp is necessary
> only for parent devfreq device.
right, that makes sense!

Thanks again for the review!

- Tobias


> If parent devfreq device change the frequency/voltage,
> the passive devfreq device will change the their frequency/voltage
> according to parent devfreq.
> 
>> +
>>  	rcu_read_unlock();
>>  
>>  	return 0;
>>
> 

  reply	other threads:[~2016-11-24 14:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23 13:51 [RFC 0/4] PM / devfreq: draft for OPP suspend impl Tobias Jakobi
2016-11-23 13:51 ` [RFC 1/4] PM / devfreq: Add DevFreq subsystem suspend/resume Tobias Jakobi
2016-11-24  1:34   ` Chanwoo Choi
2016-11-24  8:20     ` Chanwoo Choi
2016-11-24 14:20       ` Tobias Jakobi
2016-11-23 13:51 ` [RFC 2/4] PM / devfreq: suspend subsystem on system suspend/hibernate Tobias Jakobi
2016-11-24  1:35   ` Chanwoo Choi
2016-11-23 13:51 ` [RFC 3/4] PM / devfreq: exynos-bus: add support for suspend OPP Tobias Jakobi
2016-11-24  1:38   ` Chanwoo Choi
2016-11-24 14:22     ` Tobias Jakobi [this message]
2016-11-23 13:51 ` [RFC 4/4] ARM: dts: exynos4x12: add suspend OPP for DMC and leftbus Tobias Jakobi
2016-11-24  1:41   ` Chanwoo Choi
2016-11-24 14:27     ` Tobias Jakobi
2016-11-24 23:44       ` 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=5836F7B8.1000409@math.uni-bielefeld.de \
    --to=tjakobi@math.uni-bielefeld.de \
    --cc=cw00.choi@samsung.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.reichl@fivetechno.de \
    --cc=myungjoo.ham@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.