]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: atmel - disable TRNG during suspend
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 28 Oct 2016 08:00:46 +0000 (16:00 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Nov 2016 00:37:15 +0000 (08:37 +0800)
commit01ceb6f4000c5d01fdf1b6497b2926981ecad707
tree502ce3f8bebf92eaf6711532611af16b8a37752c
parent6578a1e0d4f3b0d2901bcdf4d4c3b339cffe74ae
hwrng: atmel - disable TRNG during suspend

To fix the over consumption on the VDDCore due to the TRNG enabled,
disable the TRNG during suspend, not only disable the user interface
clock (which is controlled by PMC). Because the user interface clock
is independent from any clock that may be used in the entropy source
logic circuitry.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/atmel-rng.c