]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PM / Domains: Save the fwnode in genpd_power_state
authorLina Iyer <lina.iyer@linaro.org>
Fri, 14 Oct 2016 17:47:52 +0000 (10:47 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 20:20:27 +0000 (22:20 +0200)
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>
drivers/base/power/domain.c
include/linux/pm_domain.h

index 9af75ba0472a20399e7f38f5f3a646244bc236c5..1a6073aaca0e53ee7cf7ea873bc5f761f1f46deb 100644 (file)
@@ -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;
 }
index b4894969fbeca275188f84fde0a3232fc5abd7c3..6a8988166899b0f3a97be387bfb16f246a7d0107 100644 (file)
@@ -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 {