]> www.infradead.org Git - users/dwmw2/linux.git/commit
PM: domains: Fix handling of unavailable/disabled idle states
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 25 Oct 2022 12:34:32 +0000 (13:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 14:57:53 +0000 (23:57 +0900)
commitdf67a8e625fce95b9bfcaad0b683586a95e1755b
tree0377d4c92fd38dc0e59c9c2ed64b349368b99fc0
parent1f262d80882ac344ca024523b478b035b5ab3bce
PM: domains: Fix handling of unavailable/disabled idle states

[ Upstream commit e0c57a5c70c13317238cb19a7ded0eab4a5f7de5 ]

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: a3381e3a65cb ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/power/domain.c