mbox series

[0/3] hwrng: imx-rngc - use polling instead of interrupt

Message ID 20230822152553.190858-1-martin@kaiser.cx (mailing list archive)
Headers show
Series hwrng: imx-rngc - use polling instead of interrupt | expand

Message

Martin Kaiser Aug. 22, 2023, 3:25 p.m. UTC
Use polling and wait actively for the self test and the initial seeding
of the rngc to complete. This is much simpler than using an interrupt
and a completion. Also, there's nothing we can do in parallel while self
test or initial seeding are running.

Martin Kaiser (3):
  hwrng: imx-rngc - use polling to detect end of self test
  hwrng: imx-rngc - read status register for error checks
  hwrng: imx-rngc - use polling to wait for end of seeding

 drivers/char/hw_random/imx-rngc.c | 96 ++++++-------------------------
 1 file changed, 16 insertions(+), 80 deletions(-)