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(-) -- 2.39.2