crypto: ccree - fix PM race condition

The PM code was racy, possibly causing the driver to submit
requests to a powered down device. Fix the race and while
at it simplify the PM code.

Signed-off-by: Gilad Ben-Yossef <>
Fixes: 1358c13a48c4 ("crypto: ccree - fix resume race condition on init")
Cc: # v4.20
Signed-off-by: Herbert Xu <>
4 files changed