[PATCH v3 0/2] PM: direct_complete_default and pm_runtime_enable_recursive

From: Tomeu Vizoso
Date: Tue May 19 2015 - 10:12:11 EST


Hi,

this is v3 of a series that adds API to make it more convenient for drivers to
opt into remaining runtime suspended when the system goes to sleep.

in this version I have replaced force_direct_complete with
direct_complete_default as suggested by Rafael and thus have had to add a
pm_runtime_enable_recursive() function call to make sure that all descendants
have runtime PM enabled.

Inheritance of the direct_complete_default flag has to be done in
device_pm_add instead of in pm_runtime_init because sometimes the parent won't
have been set yet by then.

Thanks,

Tomeu

Tomeu Vizoso (2):
PM / sleep: Add power.direct_complete_default flag
PM / Runtime: Add pm_runtime_enable_recursive

Documentation/power/runtime_pm.txt | 8 +++++++-
drivers/base/power/main.c | 5 +++++
drivers/base/power/runtime.c | 15 +++++++++++++++
include/linux/pm.h | 1 +
include/linux/pm_runtime.h | 1 +
5 files changed, 29 insertions(+), 1 deletion(-)

--
2.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/