Skip to content

Commit e77ee0f

Browse files
HoZHelkartben
authored andcommitted
drivers: entropy: Fix non-stop RNG ISR firing for STM32WB09
Fix the TRNG driver issue regarding non-stop ISR firing for STM32WB09 by clearing RNG_IRQ_SR_ERROR_IRQ flag. Signed-off-by: Ali Hozhabri <[email protected]>
1 parent 8c898e3 commit e77ee0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/entropy/entropy_stm32.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ static inline void ll_rng_clear_seis(RNG_TypeDef *RNGx)
5656
#if defined(CONFIG_SOC_SERIES_STM32WB0X)
5757
# if defined(CONFIG_SOC_STM32WB09XX)
5858
LL_RNG_SetResetHealthErrorFlags(RNGx, 1);
59+
WRITE_REG(RNGx->IRQ_SR, RNG_IRQ_SR_ERROR_IRQ);
5960
# else
6061
LL_RNG_ClearFlag_FAULT(RNGx);
6162
# endif

0 commit comments

Comments
 (0)