PM: runtime: Extend support for wakeirq for force_suspend|resume
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 8 Jun 2022 15:31:20 +0000 (17:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Jul 2022 19:29:06 +0000 (21:29 +0200)
commitc46a0d5ae4f93800d2d90f3a3290e58a2f4b6bdf
treea92a9e417ec1f5a6eb8a5e3d664d01f9d8a766a1
parent887371066039011144b4a94af97d9328df6869a2
PM: runtime: Extend support for wakeirq for force_suspend|resume

A driver that makes use of pm_runtime_force_suspend|resume() to support
system suspend/resume, currently needs to manage the wakeirq support
itself. To avoid the boilerplate code in the driver's system suspend/resume
callbacks in particular, let's extend pm_runtime_force_suspend|resume() to
deal with the wakeirq.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c