[PATCH] um: Rewrite host RNG driver.

2019-08-28 Thread Alexander Neville
perly registers itself as an hardware RNG. - The code is simpler and therefore easier to maintain. - It serves as a minimal example of writing a hardware RNG driver. I also edited the Kconfig symbol to bring it up to more modern standards. Signed-off-by: Alexander Neville --- arch/um/drivers/Mak

[PATCH v2] um: Rewrite host RNG driver.

2019-08-29 Thread Alexander Neville
s the hw_random framework. - The code is simpler and therefore easier to maintain. - It serves as a minimal example of writing a hardware RNG driver. I also edited the Kconfig symbol to bring it up to more modern standards. Signed-off-by: Alexander Neville --- v2: * fix -EAGAIN handling --- ar

Re: [PATCH v2] um: Rewrite host RNG driver.

2019-08-29 Thread Alexander Neville
On Thu, 29 Aug 2019 20:48:33 +0200 (CEST), Richard Weinberger wrote: > - Ursprüngliche Mail - > > Von: "Dark" > > + // Returning -EAGAIN to userspace is not nice. > > + if (err == -EAGAIN) > > + return 0; > > Hmm, doesn't this result in a short read? > The current drive