Messages in this thread | | | Date | Mon, 9 Jan 2023 11:03:55 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH v2 2/3] hwrng: starfive - Add TRNG driver for StarFive SoC |
| |
On Mon, Jan 09, 2023 at 02:58:14AM +0000, JiaJie Ho wrote: > > My trng device requires sending a generate new number cmd before each read. > It then only populates the data registers with new random number and raise an interrupt when ready. > If user choose to not wait, they will always get stale bits. > Is it okay to always return error if wait=false ?
What is the length of the wait time? Is there an upper bound? What is the average wait time?
Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |