Re: [PATCH v2] hwrng: cn10k: Add extended trng register support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 25, 2023 at 09:12:00AM +0530, Bharat Bhushan wrote:
> The way random data is read from hardware has changed from
> Octeon CN10KA-B0 and later SoCs onwards. A new set of registers
> have been added to read random data and to verify whether the
> read data is valid or not. This patch extends and uses
> RNM_PF_TRNG_DAT and RNM_PF_TRNG_STS CSRs to read random number
> and status for the applicable silicon variants.
> 
> Signed-off-by: Bharat Bhushan <bbhushan2@xxxxxxxxxxx>
> ---
> v2:
>  - Change return type of cn10k_read_trng() to bool
> 
>  drivers/char/hw_random/cn10k-rng.c | 63 ++++++++++++++++++++++++++++--
>  1 file changed, 59 insertions(+), 4 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux