From: Ulf Hansson Date: Mon, 17 Oct 2016 18:16:59 +0000 (+0200) Subject: PM / Runtime: Clarify comment in rpm_resume() when resuming the parent X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=216ef0b6b8c7f041a618913e94da52c3fdf82a99;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PM / Runtime: Clarify comment in rpm_resume() when resuming the parent Signed-off-by: Ulf Hansson Reviewed-by: Linus Walleij Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 53b427dfc403..117db71e84cb 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c @@ -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) {