mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Revert "crypto: caam - adjust RNG timing to support more devices"
This reverts commit ef492d0803
.
This patch breaks the RNG on i.MX8MM.
Reported-by: Bastian Krause <bst@pengutronix.de>
Link: https://lore.kernel.org/all/e1f3f073-9d5e-1bae-f4f8-08dc48adad62@pengutronix.de/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
419caed6cc
commit
83874b8e97
1 changed files with 2 additions and 2 deletions
|
@ -382,8 +382,8 @@ static void kick_trng(struct device *dev, int ent_delay)
|
||||||
val = ent_delay;
|
val = ent_delay;
|
||||||
/* min. freq. count, equal to 1/4 of the entropy sample length */
|
/* min. freq. count, equal to 1/4 of the entropy sample length */
|
||||||
wr_reg32(&r4tst->rtfrqmin, val >> 2);
|
wr_reg32(&r4tst->rtfrqmin, val >> 2);
|
||||||
/* max. freq. count, equal to 16 times the entropy sample length */
|
/* disable maximum frequency count */
|
||||||
wr_reg32(&r4tst->rtfrqmax, val << 4);
|
wr_reg32(&r4tst->rtfrqmax, RTFRQMAX_DISABLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
wr_reg32(&r4tst->rtsdctl, (val << RTSDCTL_ENT_DLY_SHIFT) |
|
wr_reg32(&r4tst->rtsdctl, (val << RTSDCTL_ENT_DLY_SHIFT) |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue