PM / Runtime: Clarify comment in rpm_resume() when resuming the parent
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Oct 2016 18:16:59 +0000 (20:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 13:42:11 +0000 (15:42 +0200)
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c

index 53b427dfc40392f8b8681091c945f6233bb17b8f..117db71e84cb11e38800c2f959dc9ed6188b054c 100644 (file)
@@ -713,8 +713,8 @@ static int rpm_resume(struct device *dev, int rpmflags)
 
                spin_lock(&parent->power.lock);
                /*
-                * We can resume if the parent's runtime PM is disabled or it
-                * is set to ignore children.
+                * Resume the parent if it has runtime PM enabled and not been
+                * set to ignore its children.
                 */
                if (!parent->power.disable_depth
                    && !parent->power.ignore_children) {