Searched hist:c99311c825e540aa02656ab983026a53bdd3d790 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/drivers/ |
| H A D | stm32_rng.c | c99311c825e540aa02656ab983026a53bdd3d790 Tue Jun 28 21:19:40 UTC 2022 Etienne Carriere <etienne.carriere@linaro.org> drivers: stm32_rng: remove millisecond timeout with interrupts masked
Removes the 10ms timeout monitored waiting loop in stm32_rng_read_raw() that was called with interrupts masked. stm32_rng_read_raw() is renamed read_available() and does not pool a hardware status: it either returns or reads samples according to RNG state.
Changes stm32_rng_read() to monitor RNG burst generation with a 100ms timeout. This timeout threshold targets that at least few REE ticks (dozen of ms) allow RNG to conceal and synchronize upon bad conditions.
As change rewrites function stm32_rng_read(), it also removes a zeroing of the buffer on sample generation error. The wiping is removed since pointless.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
|