diff --git a/plat/st/stm32mp1/stm32mp1_pm.c b/plat/st/stm32mp1/stm32mp1_pm.c index 1346c11b5d..c482af5021 100644 --- a/plat/st/stm32mp1/stm32mp1_pm.c +++ b/plat/st/stm32mp1/stm32mp1_pm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2021, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2023, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -169,13 +169,13 @@ static void __dead2 stm32_pwr_domain_pwr_down_wfi(const psci_power_state_t void (*warm_entrypoint)(void) = (void (*)(void))stm32_sec_entrypoint; + disable_mmu_icache_secure(); + stm32_pwr_down_wfi(stm32_is_cstop_done(), stm32mp1_get_lp_soc_mode(PSCI_MODE_SYSTEM_SUSPEND)); stm32_exit_cstop(); - disable_mmu_icache_secure(); - warm_entrypoint(); }