Skip to content

Commit bcc19f6

Browse files
Ulf Hanssonrafaeljw
authored andcommitted
PM: domains: Skip another warning in irq_safe_dev_in_sleep_domain()
In irq_safe_dev_in_sleep_domain() we correctly skip the dev_warn_once() if the corresponding genpd for the device, has the GENPD_FLAG_ALWAYS_ON flag being set. For the same reason (the genpd is always-on in runtime), let's also skip the warning if the GENPD_FLAG_RPM_ALWAYS_ON flag is set for the genpd. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 7a02444 commit bcc19f6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/base/power/domain.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ static inline bool irq_safe_dev_in_sleep_domain(struct device *dev,
143143
* callbacks are allowed to sleep. This indicates a suboptimal
144144
* configuration for PM, but it doesn't matter for an always on domain.
145145
*/
146-
if (ret && !genpd_is_always_on(genpd))
146+
if (genpd_is_always_on(genpd) || genpd_is_rpm_always_on(genpd))
147+
return ret;
148+
149+
if (ret)
147150
dev_warn_once(dev, "PM domain %s will not be powered off\n",
148151
genpd->name);
149152

0 commit comments

Comments
 (0)