Skip to content
Commit 6a825ed6 authored by Phil Elwell's avatar Phil Elwell Committed by Phil Elwell
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 f9c90df0
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