]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: iproc-rng200 - Implement suspend and resume calls
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Thu, 10 Aug 2023 19:22:08 +0000 (12:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:33 +0000 (09:42 +0200)
commit0159a21b9d8e0519f94f1e6f096d0388ff893602
treef9c18a9f38bf809e3c967ea09f44af57c5dc97ed
parent92651ce45ba1d97d3a52d5cf39f7646f7a395bf2
hwrng: iproc-rng200 - Implement suspend and resume calls

[ Upstream commit 8e03dd62e5be811efbf0cbeba47e79e793519105 ]

Chips such as BCM7278 support system wide suspend/resume which will
cause the HWRNG block to lose its state and reset to its power on reset
register values. We need to cleanup and re-initialize the HWRNG for it
to be functional coming out of a system suspend cycle.

Fixes: c3577f6100ca ("hwrng: iproc-rng200 - Add support for BCM7278")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/hw_random/iproc-rng200.c