summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann <msp@baylibre.com>2021-09-30 22:12:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 21:16:31 +0300
commit594a893df55db9915a68e9ee5b985280bd03d089 (patch)
tree12f12ff24ee6956c2bf5610b474073ff41d07f73 /security
parent51dbedbf08e01f07443bdea9aa74ffd3330d2ec8 (diff)
downloadlinux-594a893df55db9915a68e9ee5b985280bd03d089.tar.xz
hwrng: mtk - Force runtime pm ops for sleep ops
[ Upstream commit b6f5f0c8f72d348b2d07b20d7b680ef13a7ffe98 ] Currently mtk_rng_runtime_suspend/resume is called for both runtime pm and system sleep operations. This is wrong as these should only be runtime ops as the name already suggests. Currently freezing the system will lead to a call to mtk_rng_runtime_suspend even if the device currently isn't active. This leads to a clock warning because it is disabled/unprepared although it isn't enabled/prepared currently. This patch fixes this by only setting the runtime pm ops and forces to call the runtime pm ops from the system sleep ops as well if active but not otherwise. Fixes: 81d2b34508c6 ("hwrng: mtk - add runtime PM support") Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions