From: Kevin Hilman <khilman@linaro.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>,
linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Alan Stern <stern@rowland.harvard.edu>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Mark Brown <broonie@kernel.org>,
Russell King <linux@arm.linux.org.uk>,
Linus Walleij <linus.walleij@linaro.org>,
Wolfram Sang <wsa@the-dreams.de>,
Alessandro Rubini <rubini@unipv.it>,
Josh Cartwright <joshc@codeaurora.org>
Subject: Re: [PATCH V3 2/8] PM / Sleep / Runtime: Add pm_runtime_suspend|resume_force functions
Date: Mon, 03 Mar 2014 00:30:00 -0800 [thread overview]
Message-ID: <7hppm3sn07.fsf@paris.lan> (raw)
In-Reply-To: <1393671371-2398-3-git-send-email-ulf.hansson@linaro.org> (Ulf Hansson's message of "Sat, 1 Mar 2014 11:56:05 +0100")
Ulf Hansson <ulf.hansson@linaro.org> writes:
> This patch provides two new runtime PM helper functions which intend to
> be used from system suspend/resume callbacks, to make sure devices are
> put into low power state during system suspend and brought back to full
> power at system resume.
>
> The prerequisite is to have all levels of a device's runtime PM
> callbacks to be defined through the SET_PM_RUNTIME_PM_OPS macro, which
> means these are available for CONFIG_PM.
>
> By using the new runtime PM helper functions especially the two
> scenarios below will be addressed.
>
> 1) The PM core prevents .runtime_suspend callbacks from being invoked
> during system suspend. That means even for a runtime PM centric
> subsystem and driver, the device needs to be put into low power state
> from a system suspend callback. Otherwise it may very well be left in
> full power state (runtime resumed) while the system is suspended. By
> using the new helper functions, we make sure to walk the hierarchy of
> a device's power domain, subsystem and driver.
>
> 2) Subsystems and drivers need to cope with all the combinations of
> CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME. The two new helper functions
> smothly addresses this.
>
> Cc: Kevin Hilman <khilman@linaro.org>
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Alessandro Rubini <rubini@unipv.it>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
FWIW
Acked-by: Kevin Hilman <khilman@linaro.org>
WARNING: multiple messages have this Message-ID (diff)
From: khilman@linaro.org (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V3 2/8] PM / Sleep / Runtime: Add pm_runtime_suspend|resume_force functions
Date: Mon, 03 Mar 2014 00:30:00 -0800 [thread overview]
Message-ID: <7hppm3sn07.fsf@paris.lan> (raw)
In-Reply-To: <1393671371-2398-3-git-send-email-ulf.hansson@linaro.org> (Ulf Hansson's message of "Sat, 1 Mar 2014 11:56:05 +0100")
Ulf Hansson <ulf.hansson@linaro.org> writes:
> This patch provides two new runtime PM helper functions which intend to
> be used from system suspend/resume callbacks, to make sure devices are
> put into low power state during system suspend and brought back to full
> power at system resume.
>
> The prerequisite is to have all levels of a device's runtime PM
> callbacks to be defined through the SET_PM_RUNTIME_PM_OPS macro, which
> means these are available for CONFIG_PM.
>
> By using the new runtime PM helper functions especially the two
> scenarios below will be addressed.
>
> 1) The PM core prevents .runtime_suspend callbacks from being invoked
> during system suspend. That means even for a runtime PM centric
> subsystem and driver, the device needs to be put into low power state
> from a system suspend callback. Otherwise it may very well be left in
> full power state (runtime resumed) while the system is suspended. By
> using the new helper functions, we make sure to walk the hierarchy of
> a device's power domain, subsystem and driver.
>
> 2) Subsystems and drivers need to cope with all the combinations of
> CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME. The two new helper functions
> smothly addresses this.
>
> Cc: Kevin Hilman <khilman@linaro.org>
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Russell King <linux@arm.linux.org.uk>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Wolfram Sang <wsa@the-dreams.de>
> Cc: Alessandro Rubini <rubini@unipv.it>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
FWIW
Acked-by: Kevin Hilman <khilman@linaro.org>
next prev parent reply other threads:[~2014-03-03 8:30 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-01 10:56 [PATCH V3 0/8] PM / Sleep / Runtime: Fixup some driver's system suspend Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-01 10:56 ` [PATCH V3 1/8] PM / Runtime: Fetch runtime PM callbacks using a macro Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-01 10:56 ` [PATCH V3 2/8] PM / Sleep / Runtime: Add pm_runtime_suspend|resume_force functions Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-03 8:30 ` Kevin Hilman [this message]
2014-03-03 8:30 ` Kevin Hilman
2014-03-01 10:56 ` [PATCH 3/8] spi: pl022: Let runtime PM callbacks be available for CONFIG_PM Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-06 4:45 ` Mark Brown
2014-03-06 4:45 ` Mark Brown
2014-03-01 10:56 ` [PATCH 4/8] spi: pl022: Don't ignore power domain and amba bus at system suspend Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-06 4:45 ` Mark Brown
2014-03-06 4:45 ` Mark Brown
2014-03-01 10:56 ` [PATCH 5/8] i2c: nomadik: Fixup " Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-06 7:10 ` Ulf Hansson
2014-03-06 7:10 ` Ulf Hansson
2014-03-01 10:56 ` [PATCH 6/8] mmc: mmci: Mask IRQs for all variants during runtime suspend Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-10 12:46 ` Ulf Hansson
2014-03-10 12:46 ` Ulf Hansson
2014-03-10 12:49 ` Ulf Hansson
2014-03-10 12:49 ` Ulf Hansson
2014-03-01 10:56 ` [PATCH 7/8] mmc: mmci: Let runtime PM callbacks be available for CONFIG_PM Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-01 10:56 ` [PATCH 8/8] mmc: mmci: Put the device into low power state at system suspend Ulf Hansson
2014-03-01 10:56 ` Ulf Hansson
2014-03-01 23:38 ` [PATCH V3 0/8] PM / Sleep / Runtime: Fixup some driver's " Rafael J. Wysocki
2014-03-01 23:38 ` Rafael J. Wysocki
2014-03-03 7:29 ` Ulf Hansson
2014-03-03 7:29 ` Ulf Hansson
2014-03-05 6:16 ` Mark Brown
2014-03-05 6:16 ` Mark Brown
2014-03-05 13:02 ` Rafael J. Wysocki
2014-03-05 13:02 ` Rafael J. Wysocki
2014-03-06 4:43 ` Mark Brown
2014-03-06 4:43 ` Mark Brown
-- strict thread matches above, loose matches on Subject: below --
2014-02-28 11:49 [PATCH V3 2/8] PM / Sleep / Runtime: Add pm_runtime_suspend|resume_force functions Ulf Hansson
2014-02-28 11:49 ` 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=7hppm3sn07.fsf@paris.lan \
--to=khilman@linaro.org \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=joshc@codeaurora.org \
--cc=len.brown@intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=pavel@ucw.cz \
--cc=rjw@rjwysocki.net \
--cc=rubini@unipv.it \
--cc=stern@rowland.harvard.edu \
--cc=ulf.hansson@linaro.org \
--cc=wsa@the-dreams.de \
/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.