[PATCH v2 4/8] PM / Domains: Save the fwnode in genpd_power_state

Ulf Hansson ulf.hansson at linaro.org
Mon Oct 10 03:03:33 PDT 2016


On 8 October 2016 at 00:36, Lina Iyer <lina.iyer at linaro.org> wrote:
> Save the fwnode for the genpd state in the state node. PM Domain clients
> may use the fwnode to read in the platform specific domain state
> properties and associate them with the state.
>
> Signed-off-by: Lina Iyer <lina.iyer at linaro.org>

Acked-by: Ulf Hansson <ulf.hansson at linaro.org>

Kind regards
Uffe

> ---
>  drivers/base/power/domain.c | 1 +
>  include/linux/pm_domain.h   | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
> index 4208b67..e0f31fe 100644
> --- a/drivers/base/power/domain.c
> +++ b/drivers/base/power/domain.c
> @@ -1957,6 +1957,7 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state,
>
>         genpd_state->power_on_latency_ns = 1000 * exit_latency;
>         genpd_state->power_off_latency_ns = 1000 * entry_latency;
> +       genpd_state->fwnode = &state_node->fwnode;
>
>         return 0;
>  }
> diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
> index b489496..6a89881 100644
> --- a/include/linux/pm_domain.h
> +++ b/include/linux/pm_domain.h
> @@ -39,6 +39,7 @@ struct genpd_power_state {
>         s64 power_off_latency_ns;
>         s64 power_on_latency_ns;
>         s64 residency_ns;
> +       struct fwnode_handle *fwnode;
>  };
>
>  struct generic_pm_domain {
> --
> 2.7.4
>



More information about the linux-arm-kernel mailing list