linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] hwrng: imx-rngc - use polling instead of interrupt
@ 2023-08-22 15:25 Martin Kaiser
  2023-08-22 15:25 ` [PATCH 1/3] hwrng: imx-rngc - use polling to detect end of self test Martin Kaiser
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Martin Kaiser @ 2023-08-22 15:25 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto, linux-arm-kernel, linux-kernel, Martin Kaiser

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-23 11:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 15:25 [PATCH 0/3] hwrng: imx-rngc - use polling instead of interrupt Martin Kaiser
2023-08-22 15:25 ` [PATCH 1/3] hwrng: imx-rngc - use polling to detect end of self test Martin Kaiser
2023-08-23  5:23   ` Alexander Stein
2023-08-23 11:07     ` Martin Kaiser
2023-08-22 15:25 ` [PATCH 2/3] hwrng: imx-rngc - read status register for error checks Martin Kaiser
2023-08-22 15:25 ` [PATCH 3/3] hwrng: imx-rngc - use polling to wait for end of seeding Martin Kaiser
2023-08-23  5:33   ` Alexander Stein
2023-08-23 11:16     ` Martin Kaiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).