Tomas Marek e64f57e8cd hwrng: stm32 - fix read of the last word
The stm32_rng_read() function samples TRNG by 4 bytes until at
least 5 bytes are free in the input buffer. The last four bytes
are never read. For example, 60 bytes are returned in case the
input buffer size is 64 bytes.

Read until at least 4 bytes are free in the input buffer. Fill
the buffer entirely in case the buffer size is divisible by 4.

Cc: Oleg Karfich <oleg.karfich@wago.com>
Signed-off-by: Tomas Marek <tomas.marek@elrest.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-10-21 19:15:35 +08:00
..
2022-08-06 10:42:38 -07:00
2022-10-10 13:09:33 -07:00
2022-08-04 11:05:48 -07:00
2022-09-23 12:27:57 +02:00
2022-10-11 17:42:58 -06:00
2022-04-22 16:24:47 +02:00