summaryrefslogtreecommitdiff
path: root/drivers/base/firmware.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2022-02-17 13:49:50 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-03-01 15:55:41 +0100
commite7d90cfac5510f8c94baa18f9f3f7808859c8332 (patch)
treed257abef61877d5fdf6ecc579691aaaf0dfcf785 /drivers/base/firmware.c
parent7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3 (diff)
PM: domains: Prevent power off for parent unless child is in deepest state
A PM domain managed by genpd may support multiple idlestates (power-off states). During genpd_power_off() a genpd governor may be asked to select one of the idlestates based upon the dev PM QoS constraints, for example. However, there is a problem with the behaviour around this in genpd. More precisely, a parent-domain is allowed to be powered off, no matter of what idlestate that has been selected for the child-domain. For the stm32mp1 platform from STMicro, this behaviour doesn't play well. Instead, the parent-domain must not be powered off, unless the deepest idlestate has been selected for the child-domain. As the current behaviour in genpd is quite questionable anyway, let's simply change it into what is needed by the stm32mp1 platform. If it surprisingly turns out that other platforms may need a different behaviour from genpd, then we will have to revisit this to find a way to make it configurable. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/firmware.c')
0 files changed, 0 insertions, 0 deletions