Skip to content

Commit e0c57a5

Browse files
sudeep-hollarafaeljw
authored andcommitted
PM: domains: Fix handling of unavailable/disabled idle states
Platforms can provide the information about the availability of each idle states via status flag. Platforms may have to disable one or more idle states for various reasons like broken firmware or other unmet dependencies. Fix handling of such unavailable/disabled idle states by ignoring them while parsing the states. Fixes: a3381e3 ("PM / domains: Fix up domain-idle-states OF parsing") Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 247f34f commit e0c57a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/base/power/domain.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,6 +2952,10 @@ static int genpd_iterate_idle_states(struct device_node *dn,
29522952
np = it.node;
29532953
if (!of_match_node(idle_state_match, np))
29542954
continue;
2955+
2956+
if (!of_device_is_available(np))
2957+
continue;
2958+
29552959
if (states) {
29562960
ret = genpd_parse_state(&states[i], np);
29572961
if (ret) {

0 commit comments

Comments
 (0)