- To: Zhang Rui <rui.zhang@xxxxxxxxx>, Jeff Garzik <jgarzik@xxxxxxxxx>, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>, "Rafael J. Wysocki" <rjw@xxxxxxx>, Tejun Heo <tj@xxxxxxxxxx>, Aaron Lu <aaron.lu@xxxxxxx>
- Subject: [RFC PATCH v2 7/8] PM / Runtime: Add can_power_off flag to subsys data
- From: Lin Ming <ming.m.lin@xxxxxxxxx>
- Date: Thu, 1 Mar 2012 17:02:56 +0800
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-ide@xxxxxxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, linux-pm@xxxxxxxxxxxxxxx, linux-acpi <linux-acpi@xxxxxxxxxxxxxxx>
- In-reply-to: <1330592577-16546-1-git-send-email-ming.m.lin@intel.com>
- List-id: <linux-ide.vger.kernel.org>
Parent device will check child's can_power_off flag to see if child device can
be powered off.
Signed-off-by: Lin Ming <ming.m.lin@xxxxxxxxx>
---
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;
};
struct dev_pm_info {
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Filesystems]
[Linux SCSI]
[Linux RAID]
[Git]
[Kernel Newbies]
[Linux Newbie]
[Share Photos]
[Security]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]