CR_2865: hwrng: Reworked driver for speed performance and efficiency
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Wed, 14 Dec 2022 06:14:39 +0000 (14:14 +0800)
committerJia Jie Ho <jiajie.ho@starfivetech.com>
Wed, 14 Dec 2022 06:47:39 +0000 (14:47 +0800)
commit202b558ae34c85007a82ba0b36f174bd0c8d4087
tree0db050228e28c1fd4464e2780e71510a3396fdb2
parent5e6efe042c857d736ac3c3d47df0afe684733832
CR_2865: hwrng: Reworked driver for speed performance and efficiency

Changes:
1. Reseed during init only, not for every read.
2. Completion struct for irqreturn for better efficiency.
3. Add module_param for reseed operations based on request counter
and/or timer countdown.
4. Removed unused macros and steps.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi
arch/riscv/configs/starfive_jh7110_defconfig
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Makefile
drivers/char/hw_random/starfive-trng.c
drivers/char/hw_random/starfive-trng.h [deleted file]