]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: atmel - move set of TRNG_HALFR in atmel_trng_init()
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 21 Feb 2022 07:59:25 +0000 (09:59 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 Mar 2022 22:46:19 +0000 (10:46 +1200)
commitcf230f1725cbfcb57c9cc4e0c88ce27b524af556
treed0d4991ce97645238895cc4249f27a3f6e84e651
parenta4cea1f10cd99c94d1e500c819499d1a58df2ec6
hwrng: atmel - move set of TRNG_HALFR in atmel_trng_init()

Move set of TRNG_HALFR in atmel_trng_init() as this function is
also called on resume path. In case of SAMA7G5 where backup and
self-refresh PM mode is available most of the SoC parts are
powered of (including TRNG) when entering suspend. In that case
on resuming path TRNG_HALFR should also be re-configured.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/atmel-rng.c