[PATCH 5/7] rng: stm32: add error concealment sequence
Patrick DELAUNAY
patrick.delaunay at foss.st.com
Mon Sep 11 11:54:55 CEST 2023
Hi,
On 9/7/23 18:21, Gatien Chevallier wrote:
> Seed errors can occur when using the hardware RNG. Implement the
> sequences to handle them. This avoids irrecoverable RNG state.
>
> Try to conceal seed errors when possible. If, despite the error
> concealing tries, a seed error is still present, then return an error.
>
> A clock error does not compromise the hardware block and data can
> still be read from RNG_DR. Just warn that the RNG clock is too slow
> and clear RNG_SR.
>
> Signed-off-by: Gatien Chevallier <gatien.chevallier at foss.st.com>
> ---
> drivers/rng/stm32_rng.c | 163 ++++++++++++++++++++++++++++++++++------
> 1 file changed, 140 insertions(+), 23 deletions(-)
>
Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
Thanks
Patrick
More information about the U-Boot
mailing list