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: Sunil Goutham <sgoutham@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/67460 Tested-by: sa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com> Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Please register or sign in to comment