Skip to content

Commit 0c9b694

Browse files
ilina-linarorafaeljw
authored andcommitted
PM / Domains: Save the fwnode in genpd_power_state
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 <[email protected]> Acked-by: Ulf Hansson <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 30f6042 commit 0c9b694

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/base/power/domain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,7 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state,
19561956

19571957
genpd_state->power_on_latency_ns = 1000 * exit_latency;
19581958
genpd_state->power_off_latency_ns = 1000 * entry_latency;
1959+
genpd_state->fwnode = &state_node->fwnode;
19591960

19601961
return 0;
19611962
}

include/linux/pm_domain.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct genpd_power_state {
3939
s64 power_off_latency_ns;
4040
s64 power_on_latency_ns;
4141
s64 residency_ns;
42+
struct fwnode_handle *fwnode;
4243
};
4344

4445
struct generic_pm_domain {

0 commit comments

Comments
 (0)