We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d614dcb commit ef492d0Copy full SHA for ef492d0
drivers/crypto/caam/ctrl.c
@@ -389,8 +389,8 @@ static void kick_trng(struct device *dev, int ent_delay)
389
wr_reg32(&r4tst->rtsdctl, val);
390
/* min. freq. count, equal to 1/4 of the entropy sample length */
391
wr_reg32(&r4tst->rtfrqmin, ent_delay >> 2);
392
- /* disable maximum frequency count */
393
- wr_reg32(&r4tst->rtfrqmax, RTFRQMAX_DISABLE);
+ /* max. freq. count, equal to 16 times the entropy sample length */
+ wr_reg32(&r4tst->rtfrqmax, ent_delay << 4);
394
/* read the control register */
395
val = rd_reg32(&r4tst->rtmctl);
396
start_rng:
0 commit comments