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)
commita1fa98d8116fb4f8a5df91fb2267ce8d192f6875
tree502ce3f8bebf92eaf6711532611af16b8a37752c
parent6c0f40005ce4ada880f684d9d15fd05b076ee2c4
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