Skip to content

Commit

Permalink
PM / Domains: Save the fwnode in genpd_power_state
Browse files Browse the repository at this point in the history
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@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Lina Iyer authored and Rafael J. Wysocki committed Oct 21, 2016
1 parent 30f6042 commit 0c9b694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/base/power/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1956,6 +1956,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;
}
Expand Down
1 change: 1 addition & 0 deletions include/linux/pm_domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0c9b694

Please sign in to comment.