mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: caam - adjust RNG timing to support more devices
@ 2023-06-12  8:26 meenakshi.aggarwal
  2023-06-15 11:45 ` Gaurav Jain
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: meenakshi.aggarwal @ 2023-06-12  8:26 UTC (permalink / raw)
  To: horia.geanta, V.sethi, pankaj.gupta, gaurav.jain, herbert, davem,
	linux-crypto, linux-kernel
  Cc: Victoria Milhoan, Dan Douglass, Vipul Kumar

From: Victoria Milhoan <vicki.milhoan@freescale.com>

Adjust RNG timing parameters to support more i.MX6 devices.

Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: Dan Douglass <dan.douglass@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
---
 drivers/crypto/caam/ctrl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c
index 5fed3cf354c0..62dd069942e4 100644
--- a/drivers/crypto/caam/ctrl.c
+++ b/drivers/crypto/caam/ctrl.c
@@ -383,8 +383,8 @@ static void kick_trng(struct device *dev, int ent_delay)
 	wr_reg32(&r4tst->rtsdctl, val);
 	/* min. freq. count, equal to 1/4 of the entropy sample length */
 	wr_reg32(&r4tst->rtfrqmin, ent_delay >> 2);
-	/* disable maximum frequency count */
-	wr_reg32(&r4tst->rtfrqmax, RTFRQMAX_DISABLE);
+	/* max. freq. count, equal to 16 times the entropy sample length */
+	wr_reg32(&r4tst->rtfrqmax, ent_delay << 4);
 	/* read the control register */
 	val = rd_reg32(&r4tst->rtmctl);
 start_rng:
-- 
2.25.1


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

end of thread, other threads:[~2023-08-13 14:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12  8:26 [PATCH] crypto: caam - adjust RNG timing to support more devices meenakshi.aggarwal
2023-06-15 11:45 ` Gaurav Jain
2023-06-23  8:20 ` Herbert Xu
2023-07-17 12:43 ` Bastian Krause
2023-07-18  9:43   ` Bastian Krause
2023-07-19  7:00     ` Meenakshi Aggarwal
2023-07-24  5:13       ` Meenakshi Aggarwal
2023-08-04  9:14         ` Herbert Xu
2023-08-04 12:02           ` [EXT] " Gaurav Jain
2023-08-11  8:47             ` Linux regression tracking (Thorsten Leemhuis)
2023-08-11 11:55               ` Meenakshi Aggarwal
2023-08-11 12:58                 ` Meenakshi Aggarwal
2023-08-13 14:04                   ` Linux regression tracking (Thorsten Leemhuis)
2023-07-24 17:21       ` Bastian Krause
2023-08-05 13:04   ` Linux regression tracking #adding (Thorsten Leemhuis)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®