linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM / Domains: Call driver's noirq callbacks
@ 2017-06-20 12:05 Mikko Perttunen
  2017-06-20 12:47 ` Ulf Hansson
  0 siblings, 1 reply; 10+ messages in thread
From: Mikko Perttunen @ 2017-06-20 12:05 UTC (permalink / raw)
  To: rjw, khilman, ulf.hansson; +Cc: linux-pm, linux-kernel, Mikko Perttunen

Currently genpd installs its own suspend_noirq and resume_noirq
callbacks, but never calls down to the driver's corresponding
callbacks. Add these calls.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
---

 drivers/base/power/domain.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index d3f1d96f75e9..c3b6e6018c02 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -925,6 +925,10 @@ static int pm_genpd_suspend_noirq(struct device *dev)
 			return ret;
 	}
 
+	ret = pm_generic_suspend_noirq(dev);
+	if (ret)
+		return ret;
+
 	genpd_lock(genpd);
 	genpd->suspended_count++;
 	genpd_sync_power_off(genpd, true, 0);
@@ -958,6 +962,10 @@ static int pm_genpd_resume_noirq(struct device *dev)
 	genpd->suspended_count--;
 	genpd_unlock(genpd);
 
+	ret = pm_generic_resume_noirq(dev);
+	if (ret)
+		return ret;
+
 	if (genpd->dev_ops.stop && genpd->dev_ops.start)
 		ret = pm_runtime_force_resume(dev);
 
-- 
2.1.4

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

end of thread, other threads:[~2017-06-28  9:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-20 12:05 [PATCH] PM / Domains: Call driver's noirq callbacks Mikko Perttunen
2017-06-20 12:47 ` Ulf Hansson
2017-06-20 13:04   ` Mikko Perttunen
2017-06-20 13:38   ` [PATCH v2] " Mikko Perttunen
2017-06-20 14:18     ` Ulf Hansson
2017-06-21  7:06       ` Mikko Perttunen
2017-06-22  7:18       ` [PATCH v3] " Mikko Perttunen
2017-06-27 22:46         ` Rafael J. Wysocki
2017-06-28  9:00         ` Ulf Hansson
2017-06-21 14:52     ` [PATCH v2] " kbuild test robot

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).