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

login
register
mail settings
Submitter Lin Ming
Date March 1, 2012, 9:02 a.m.
Message ID <1330592577-16546-8-git-send-email-ming.m.lin@intel.com>
Download mbox | patch
Permalink /patch/143959/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Lin Ming - March 1, 2012, 9:02 a.m.
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@intel.com>
---
 include/linux/pm.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Lin Ming - March 19, 2012, 1:34 a.m.
On Thu, Mar 1, 2012 at 5:02 PM, Lin Ming <ming.m.lin@intel.com> wrote:
> 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@intel.com>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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 {