public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Kevin Hilman <khilman@kernel.org>,
	linux-pm@vger.kernel.org, Len Brown <len.brown@intel.com>,
	Pavel Machek <pavel@ucw.cz>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Lina Iyer <lina.iyer@linaro.org>,
	Axel Haslam <ahaslam@baylibre.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Jon Hunter <jonathanh@nvidia.com>,
	Andy Gross <andy.gross@linaro.org>
Subject: Re: [PATCH v2 2/2] PM / Domains: Drop unnecessary wakeup code from pm_genpd_prepare()
Date: Tue, 26 Apr 2016 10:31:37 +0300	[thread overview]
Message-ID: <4471844.9GATtWcZMn@avalon> (raw)
In-Reply-To: <1461653238-3891-3-git-send-email-ulf.hansson@linaro.org>

Hi Ulf,

Thank you for the patch.

On Tuesday 26 Apr 2016 08:47:18 Ulf Hansson wrote:
> As the PM core already have wakeup management during the system PM phase,
> it seems reasonable that genpd and its users should be able to rely on
> that. Therefore let's remove this from pm_genpd_prepare().

It's probably because I'm not familiar enough with the PM implementation, but 
I haven't been able to locate the wakeup management code in the PM core.

> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
> 
> Changes in v2:
> 	None.
> 
> ---
>  drivers/base/power/domain.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
> index 60a3573..de23b64 100644
> --- a/drivers/base/power/domain.c
> +++ b/drivers/base/power/domain.c
> @@ -730,12 +730,6 @@ static int pm_genpd_prepare(struct device *dev)
>  	 * at this point and a system wakeup event should be reported if it's
>  	 * set up to wake up the system from sleep states.
>  	 */
> -	if (pm_runtime_barrier(dev) && device_may_wakeup(dev))
> -		pm_wakeup_event(dev, 0);
> -
> -	if (pm_wakeup_pending())
> -		return -EBUSY;
> -
>  	if (resume_needed(dev, genpd))
>  		pm_runtime_resume(dev);

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2016-04-26  7:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-26  6:47 [PATCH v2 0/2] PM / Domains: Initial improvements of system PM code in genpd Ulf Hansson
2016-04-26  6:47 ` [PATCH v2 1/2] PM / Domains: Remove redundant pm_runtime_get|put*() in pm_genpd_prepare() Ulf Hansson
2016-04-26  7:08   ` Ulf Hansson
2016-04-27 21:28     ` Rafael J. Wysocki
2016-04-26  7:27   ` Laurent Pinchart
2016-04-26  7:27   ` Laurent Pinchart
2016-04-26  6:47 ` [PATCH v2 2/2] PM / Domains: Drop unnecessary wakeup code from pm_genpd_prepare() Ulf Hansson
2016-04-26  7:31   ` Laurent Pinchart [this message]
2016-04-26 11:51     ` Ulf Hansson

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=4471844.9GATtWcZMn@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=ahaslam@baylibre.com \
    --cc=andy.gross@linaro.org \
    --cc=geert+renesas@glider.be \
    --cc=jonathanh@nvidia.com \
    --cc=khilman@kernel.org \
    --cc=len.brown@intel.com \
    --cc=lina.iyer@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=pavel@ucw.cz \
    --cc=rjw@rjwysocki.net \
    --cc=ulf.hansson@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