Skip to content
Commit 5f80679c authored by Phil Elwell's avatar Phil Elwell Committed by Dom Cobley
Browse files

hwrng: bcm2835 - sleep more intelligently

While waiting for random data, use sleeps that are proportional
to the amount of data expected. Prevent indefinite waits by
giving up if nothing is received for a second.

See: https://github.com/raspberrypi/linux/issues/5390



Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
parent 628da4cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment