File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,9 @@ static int start_pool_filling(bool wait)
417
417
* rng pool is filled.
418
418
*/
419
419
pm_policy_state_lock_get (PM_STATE_SUSPEND_TO_IDLE , PM_ALL_SUBSTATES );
420
+ if (IS_ENABLED (CONFIG_PM_S2RAM )) {
421
+ pm_policy_state_lock_get (PM_STATE_SUSPEND_TO_RAM , PM_ALL_SUBSTATES );
422
+ }
420
423
421
424
acquire_rng ();
422
425
irq_enable (IRQN );
@@ -546,6 +549,9 @@ static void stm32_rng_isr(const void *arg)
546
549
irq_disable (IRQN );
547
550
release_rng ();
548
551
pm_policy_state_lock_put (PM_STATE_SUSPEND_TO_IDLE , PM_ALL_SUBSTATES );
552
+ if (IS_ENABLED (CONFIG_PM_S2RAM )) {
553
+ pm_policy_state_lock_put (PM_STATE_SUSPEND_TO_RAM , PM_ALL_SUBSTATES );
554
+ }
549
555
entropy_stm32_rng_data .filling_pools = false;
550
556
}
551
557
You can’t perform that action at this time.
0 commit comments