Thread (25 messages) 25 messages, 3 authors, 2012-03-21

Re: [RFC PATCH v2 7/8] PM / Runtime: Add can_power_off flag to subsys data

From: Lin Ming <hidden>
Date: 2012-03-19 01:34:12
Also in: linux-acpi, linux-scsi, lkml

On Thu, Mar 1, 2012 at 5:02 PM, Lin Ming [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Parent device will check child's can_power_off flag to see if child device can
be powered off.

Signed-off-by: Lin Ming <redacted>
---
 include/linux/pm.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/pm.h b/include/linux/pm.h
index e4982ac..2e74531 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -465,6 +465,7 @@ struct pm_subsys_data {
 #ifdef CONFIG_PM_GENERIC_DOMAINS
       struct pm_domain_data *domain_data;
 #endif
+       bool can_power_off;
Hi Rafael,

I moved can_power_off flag to pm_subsys_daa.
SCSI/SATA will use it.

Is it OK to you?

Thanks,
Lin Ming
 };

 struct dev_pm_info {
--
1.7.2.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help