[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aX1wHQVReC4g55vH@gondor.apana.org.au>
Date: Sat, 31 Jan 2026 10:59:41 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Chenghai Huang <huangchenghai2@...wei.com>
Cc: davem@...emloft.net, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, fanghao11@...wei.com,
liulongfang@...wei.com, qianweili@...wei.com,
wangzhou1@...ilicon.com
Subject: Re: [PATCH V2] crypto: hisilicon/trng - support tfms sharing the
device
On Sat, Jan 17, 2026 at 03:18:21PM +0800, Chenghai Huang wrote:
> From: Weili Qian <qianweili@...wei.com>
>
> Since the number of devices is limited, and the number
> of tfms may exceed the number of devices, to ensure that
> tfms can be successfully allocated, support tfms
> sharing the same device.
>
> Fixes: e4d9d10ef4be ("crypto: hisilicon/trng - add support for PRNG")
> Signed-off-by: Weili Qian <qianweili@...wei.com>
> Signed-off-by: Chenghai Huang <huangchenghai2@...wei.com>
> ---
> Changes in v2:
> - Move the device lock to the hisi_trng_generate(), unlock after
> generating a block of random numbers, to prevent one thread from
> hogging the lock.
> ---
> drivers/crypto/hisilicon/trng/trng.c | 121 +++++++++++++++++++--------
> 1 file changed, 86 insertions(+), 35 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists