diff options
| author | Gatien Chevallier <gatien.chevallier@foss.st.com> | 2023-09-21 10:02:57 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-10-01 16:28:15 +0800 |
| commit | b17bc6eb7c2b089f4425b5b656184385acac77fe (patch) | |
| tree | 82a2a61b30ba710e8c98ca314d9f9e5eb8581168 /tools/perf/scripts/python | |
| parent | 8f1c5227eccb4e1c47b30bbe4a63b87535d12674 (diff) | |
| download | linux-b17bc6eb7c2b089f4425b5b656184385acac77fe.tar.gz linux-b17bc6eb7c2b089f4425b5b656184385acac77fe.zip | |
hwrng: stm32 - rework error handling in stm32_rng_read()
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@foss.st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
