Skip to content

Commit d7074f2

Browse files
HoZHelcfriedt
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 04baf84 commit d7074f2

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
@@ -55,6 +55,7 @@ static inline void ll_rng_clear_seis(RNG_TypeDef *RNGx)
5555
{
5656
#if defined(CONFIG_SOC_STM32WB09XX)
5757
LL_RNG_SetResetHealthErrorFlags(RNGx, 1);
58+
stm32_reg_write(&RNGx->IRQ_SR, RNG_IRQ_SR_ERROR_IRQ);
5859
#elif defined(CONFIG_SOC_SERIES_STM32WB0X)
5960
/* STM32WB05 / STM32WB06 / STM32WB07 */
6061
LL_RNG_ClearFlag_FAULT(RNGx);

0 commit comments

Comments
 (0)