commit | 58206ec49d011cf3cbb460c43785eb09b95c9390 | [log] [tgz] |
---|---|---|
author | Gatien Chevallier <gatien.chevallier@foss.st.com> | Fri May 26 15:49:03 2023 +0200 |
committer | Yann Gautier <yann.gautier@st.com> | Wed Sep 27 16:21:58 2023 +0200 |
tree | ae5bb00022400b463125d937f515640f597b4817 | |
parent | b2cd8b788f94a5a4296052062bd3fb1c70c444a8 [diff] |
fix(st-crypto): do not read RNG data if it's not ready Having RNG_SR_DRDY bit in RNG_SR register does not mean that there are 4 RNG words ready to be read. Add a check on RNG_SR_DRDY between each word reading. Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Change-Id: I46af7ca6c0ddbe19540b248365a5016b15b9a707