diff options
author | Nicola Mazzucato <nicola.mazzucato@arm.com> | 2019-12-23 14:54:55 +0000 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2020-03-02 11:01:53 +0000 |
commit | c45a90aca1ebe6695dade999f0cf419c2d2f926b (patch) | |
tree | f6e6e136cea7ce30a5d48b7f46e46b9840e7eddb /module/system_power | |
parent | edd84aa3545c4f052ab15c50c86a3018a789e92f (diff) |
system_power: Add missing storing of request_state in shutdown
When a set_state request is performed, this module stores the
requested power state and uses it to report just once to
power_domain module.
The same strategy needs to be done in case of shutdown request,
and this patch adds such missing piece.
Change-Id: Id44ca7089e722b22a74233408a5287f0110fcd20
Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
Diffstat (limited to 'module/system_power')
-rw-r--r-- | module/system_power/src/mod_system_power.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/module/system_power/src/mod_system_power.c b/module/system_power/src/mod_system_power.c index 11afc4ad..b8e42f92 100644 --- a/module/system_power/src/mod_system_power.c +++ b/module/system_power/src/mod_system_power.c @@ -181,8 +181,14 @@ static int shutdown( /* Shutdown external PPUs */ ext_ppus_shutdown(system_shutdown); + system_power_ctx.requested_state = MOD_PD_STATE_OFF; + /* Shutdown system PPUs */ - return shutdown_system_power_ppus(system_shutdown); + status = shutdown_system_power_ppus(system_shutdown); + if (status != FWK_SUCCESS) + return status; + + return FWK_SUCCESS; } /* |