rng: msm: keep core clock disabled when PRNG not in use
authorSam Day <me@samcday.com>
Wed, 12 Feb 2025 07:01:55 +0000 (07:01 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Mon, 17 Mar 2025 13:38:18 +0000 (13:38 +0000)
commit2babb61428dcb55067a81f88bbc2124924807345
tree0ea7959468e52b9a3ff757d6033713ac56bfcffe
parentdc8754e8e40813ee39f061506fba27115363061f
rng: msm: keep core clock disabled when PRNG not in use

This is how the kernel does it. APQ8016E TRM also states that this clock
can be turned off when no random numbers are needed.

Signed-off-by: Sam Day <me@samcday.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20250212-msm-rng-fixes-v2-5-645cf8d3fd3c@samcday.com
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/rng/msm_rng.c