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)
commit9fbd8b306fcb8d1f1294972f26a3e4d57134c4ad
treed0d4991ce97645238895cc4249f27a3f6e84e651
parentf14b02088fb8b6633bc32b052e0d66308f191cc8
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