Skip to content

Commit 8185c07

Browse files
nordic-krchgithub-actions[bot]
authored andcommitted
[nrf fromlist] soc: nordic: nrf54h: Fix s2ram
Cache was not enabled when s2ram did not completed which lead to system malfunction. Always power up cache when returning from s2ram function. Upstream PR #: 88709 Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 7607c65)
1 parent 288fcb5 commit 8185c07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

soc/nordic/nrf54h/pm_s2ram.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ int soc_s2ram_suspend(pm_s2ram_system_off_fn_t system_off)
166166
nvic_suspend(&backup_data.nvic_context);
167167
mpu_suspend(&backup_data.mpu_context);
168168
ret = arch_pm_s2ram_suspend(system_off);
169+
/* Cache is powered down so power up is needed even if s2ram failed. */
170+
nrf_power_up_cache();
169171
if (ret < 0) {
170172
return ret;
171173
}

0 commit comments

Comments
 (0)