Skip to content

Commit 83874b8

Browse files
committed
Revert "crypto: caam - adjust RNG timing to support more devices"
This reverts commit ef492d0. This patch breaks the RNG on i.MX8MM. Reported-by: Bastian Krause <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Herbert Xu <[email protected]>
1 parent 419caed commit 83874b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/caam/ctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ static void kick_trng(struct device *dev, int ent_delay)
382382
val = ent_delay;
383383
/* min. freq. count, equal to 1/4 of the entropy sample length */
384384
wr_reg32(&r4tst->rtfrqmin, val >> 2);
385-
/* max. freq. count, equal to 16 times the entropy sample length */
386-
wr_reg32(&r4tst->rtfrqmax, val << 4);
385+
/* disable maximum frequency count */
386+
wr_reg32(&r4tst->rtfrqmax, RTFRQMAX_DISABLE);
387387
}
388388

389389
wr_reg32(&r4tst->rtsdctl, (val << RTSDCTL_ENT_DLY_SHIFT) |

0 commit comments

Comments
 (0)