stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: Stephen Boyd <sboyd@codeaurora.org>
Cc: Rafael Wysocki <rjw@rjwysocki.net>,
	jy0922.shim@samsung.com, Viresh Kumar <vireshk@kernel.org>,
	Nishanth Menon <nm@ti.com>,
	linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Vincent Guittot <vincent.guittot@linaro.org>,
	"# v4 . 4+" <stable@vger.kernel.org>
Subject: Re: [PATCH V5] PM / OPP: Pass opp_table to dev_pm_opp_put_regulator()
Date: Thu, 1 Dec 2016 05:55:48 +0530	[thread overview]
Message-ID: <20161201002548.GO3288@vireshk-i7> (raw)
In-Reply-To: <20161130220019.GK6095@codeaurora.org>

On 30-11-16, 14:00, Stephen Boyd wrote:
> On 11/30, Viresh Kumar wrote:
> > From: Stephen Boyd <sboyd@codeaurora.org>
> > 
> > Joonyoung Shim reported an interesting problem on his ARM octa-core
> > Odoroid-XU3 platform. During system suspend, dev_pm_opp_put_regulator()
> > was failing for a struct device for which dev_pm_opp_set_regulator() is
> > called earlier.
> > 
> > This happened because an earlier call to
> > dev_pm_opp_of_cpumask_remove_table() function (from cpufreq-dt.c file)
> > removed all the entries from opp_table->dev_list apart from the last CPU
> > device in the cpumask of CPUs sharing the OPP.
> > 
> > But both dev_pm_opp_set_regulator() and dev_pm_opp_put_regulator()
> > routines get CPU device for the first CPU in the cpumask. And so the OPP
> > core failed to find the OPP table for the struct device.
> > 
> > This patch attempts to fix this problem by returning a pointer to the
> > opp_table from dev_pm_opp_set_regulator() and using that as the
> > parameter to dev_pm_opp_put_regulator(). This ensures that the
> > dev_pm_opp_put_regulator() doesn't fail to find the opp table.
> > 
> > Note that similar design problem also exists with other
> > dev_pm_opp_put_*() APIs, but those aren't used currently by anyone and
> > so we don't need to update them for now.
> > 
> > [Viresh]: Written commit log and tested on exynos 5250.
> > 
> > Cc: # v4.4+ <stable@vger.kernel.org>
> > Reported-by: Joonyoung Shim <jy0922.shim@samsung.com>
> > Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
> > Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> > ---
> 
> You should have asked for my Signed-off-by instead of just adding
> it.

I was worried about the 24 hrs that gets wasted because of 12 hrs
difference in our time zones and so added you as the author and added
your sob. :)

> Here it is to make things explicit and recorded:

Thanks.

-- 
viresh

  reply	other threads:[~2016-12-01  0:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20161130040034epcas5p4344849b26e8b5c435e658e3a0179cef6@epcas5p4.samsung.com>
2016-11-30  3:59 ` [PATCH V4] PM / OPP: Pass opp_table to dev_pm_opp_put_regulator() Viresh Kumar
2016-11-30  6:19   ` Joonyoung Shim
2016-11-30  8:05     ` Viresh Kumar
2016-12-01  1:45       ` Joonyoung Shim
2016-12-01  3:29         ` Viresh Kumar
2016-11-30 10:47   ` Viresh Kumar
2016-11-30 10:51   ` [PATCH V5] " Viresh Kumar
2016-11-30 22:00     ` Stephen Boyd
2016-12-01  0:25       ` Viresh Kumar [this message]
2016-12-01 14:28         ` Rafael J. Wysocki

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=20161201002548.GO3288@vireshk-i7 \
    --to=viresh.kumar@linaro.org \
    --cc=jy0922.shim@samsung.com \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=rjw@rjwysocki.net \
    --cc=sboyd@codeaurora.org \
    --cc=stable@vger.kernel.org \
    --cc=vincent.guittot@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;
as well as URLs for NNTP newsgroup(s).