Skip to content
Commit fb1b7ddd 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 eb3db8ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment