On Mon, May 19, 2025 at 04:13:14PM +0800, Qunqin Zhao wrote: > > Then the HISI TRNG driver isn't a right demo?
Yes the hisi trng looks wrong too. > This can also avoid concurrent access to a device, otherwise i need to > > add mutex_lock/unlock in generate and seed callback. Randomly failing the tfm allocation is not a solution to resource control :) Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt