aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2017-03-20 06:19:23 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-03-28 18:11:34 -0400
commit075c37d59ecd4a8b7c9cb5570e90d5b538797ad2 (patch)
tree5b16ee803564ba1f52f836f75c49084e955fcfca
parent1c14967c6ea0deb3db4a974b1de519f5a5593ef4 (diff)
PM / Domains: Don't warn about IRQ safe device for an always on PM domain
When an IRQ safe device is attached to a no sleep domain, genpd prints a warning once, as to indicate it is a suboptimal configuration from power consumption point of view. However the warning doesn't make sense for an always on domain, since it anyway remains powered on. Therefore, let's change to not print the warning for this configuration. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/base/power/domain.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
index c0318c130396..06807933a285 100644
--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -132,8 +132,12 @@ static inline bool irq_safe_dev_in_no_sleep_domain(struct device *dev,
132 132
133 ret = pm_runtime_is_irq_safe(dev) && !genpd_is_irq_safe(genpd); 133 ret = pm_runtime_is_irq_safe(dev) && !genpd_is_irq_safe(genpd);
134 134
135 /* Warn once if IRQ safe dev in no sleep domain */ 135 /*
136 if (ret) 136 * Warn once if an IRQ safe device is attached to a no sleep domain, as
137 * to indicate a suboptimal configuration for PM. For an always on
138 * domain this isn't case, thus don't warn.
139 */
140 if (ret && !genpd_is_always_on(genpd))
137 dev_warn_once(dev, "PM domain %s will not be powered off\n", 141 dev_warn_once(dev, "PM domain %s will not be powered off\n",
138 genpd->name); 142 genpd->name);
139 143