All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Introduce SET_NOIRQ_SYSTEM_SLEEP_PM_OPS and use it
@ 2015-04-27 18:24 ` grygorii.strashko
  0 siblings, 0 replies; 27+ messages in thread
From: grygorii.strashko @ 2015-04-27 18:24 UTC (permalink / raw)
  To: Rafael J. Wysocki, Pavel Machek, Len Brown, linux-pm
  Cc: ulf.hansson, linux-arm-kernel, linux-omap, linux-kernel,
	Grygorii Strashko, Tony Lindgren, Nishanth Menon, Kevin Hilman,
	Santosh Shilimkar

From: Grygorii Strashko <grygorii.strashko@linaro.org>

While working on suspend-to-disk functionality on TI dra7-evm (DRA7xx SoC)
i've found that the most common problem I have to dial with is absence
of corresponding PM callbacks in drivers and, in particular, noirq callbacks.
So, I've fixed one driver first
commit 6248015d6867 "ARM: omap-device: add missed callback for suspend-to-disk"
but then found another one which need to be fixed too (omap_l3_noc.c).
At this moment I decided to make my life easier and added new macro
SET_NOIRQ_SYSTEM_SLEEP_PM_OPS using the same approach as for the existing
SET_SYSTEM_SLEEP_PM_OPS macro.

SET_NOIRQ_SYSTEM_SLEEP_PM_OPS: defined for CONFIG_PM_SLEEP and
assigns ->suspend_noirq, ->freeze_noirq and ->poweroff_noirq to the same
function. Vice versa happens for ->resume_noirq, ->thaw_noirq and
->restore_noirq.

Further two patches reuse this newly introduced macro.

SET_NOIRQ_SYSTEM_SLEEP_PM_OPS, defined for CONFIG_PM_SLEEP, will
    point ->suspend_noirq, ->freeze_noirq and ->poweroff_noirq to the same
    function. Vice versa happens for ->resume_noirq, ->thaw_noirq and
    ->restore_noirq.

Cc: Tony Lindgren <tony@atomide.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Santosh Shilimkar <ssantosh@kernel.org>

Grygorii Strashko (3):
  PM / Sleep: Add macro to define common noirq system PM callbacks
  bus: omap_l3_noc: add missed callbacks for suspend-to-disk
  ARM: omap-device: use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS

 arch/arm/mach-omap2/omap_device.c |  7 ++-----
 drivers/bus/omap_l3_noc.c         |  4 ++--
 include/linux/pm.h                | 12 ++++++++++++
 3 files changed, 16 insertions(+), 7 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2015-05-15  0:06 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 18:24 [PATCH 0/3] Introduce SET_NOIRQ_SYSTEM_SLEEP_PM_OPS and use it grygorii.strashko
2015-04-27 18:24 ` grygorii.strashko at linaro.org
2015-04-27 18:24 ` grygorii.strashko
2015-04-27 18:24 ` [PATCH 1/3] PM / Sleep: Add macro to define common noirq system PM callbacks grygorii.strashko
2015-04-27 18:24   ` grygorii.strashko at linaro.org
2015-04-27 18:24   ` grygorii.strashko
2015-04-27 18:24 ` [PATCH 2/3] bus: omap_l3_noc: add missed callbacks for suspend-to-disk grygorii.strashko
2015-04-27 18:24   ` grygorii.strashko at linaro.org
2015-04-27 18:24   ` grygorii.strashko
2015-04-27 19:30   ` Nishanth Menon
2015-04-27 19:30     ` Nishanth Menon
2015-04-27 19:30     ` Nishanth Menon
2015-04-27 18:24 ` [PATCH 3/3] ARM: omap-device: use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS grygorii.strashko
2015-04-27 18:24   ` grygorii.strashko at linaro.org
2015-04-27 18:24   ` grygorii.strashko
2015-04-27 20:27 ` [PATCH 0/3] Introduce SET_NOIRQ_SYSTEM_SLEEP_PM_OPS and use it santosh shilimkar
2015-04-27 20:27   ` santosh shilimkar
2015-04-28  7:40 ` Ulf Hansson
2015-04-28  7:40   ` Ulf Hansson
2015-04-28  7:40   ` Ulf Hansson
2015-04-28 15:40 ` Kevin Hilman
2015-04-28 15:40   ` Kevin Hilman
2015-04-28 15:40   ` Kevin Hilman
2015-05-15  0:06   ` Rafael J. Wysocki
2015-05-15  0:06     ` Rafael J. Wysocki
2015-04-30 17:37 ` Pavel Machek
2015-04-30 17:37   ` Pavel Machek

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.