Skip to content
Commit 71673494 authored by Sunil Goutham's avatar Sunil Goutham Committed by Ruiqiang Hao
Browse files

hwrng: cn10k: Don't read TRNG_STATUS, it's not reliable



commit afcf726e6abefa9f00edd9649c9ade983baeb66e from
git@git.assembla.com:cavium/WindRiver.linux.git

While debugging an issue where if RNDRRS instruction is used to
fetch random data, then from then onwards reading radmon data
from /dev/hwrng is effected. Due to a HW issue the TRNG_STATUS
is not reliable anymore, even though there is valid data in TRNG,
status will still return '0'.

So removed checking TRNG_STATUS before reading random data.

Change-Id: Iaa21acadc77bce689407e538c1c2e4921d1152a6
Signed-off-by: default avatarSunil Goutham <sgoutham@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/67460


Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent b4789026
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