crypto: rockchip - do not do custom power management
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 27 Sep 2022 07:54:41 +0000 (07:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:32 +0000 (12:36 +0800)
commitc50ef1411c8cbad0c7db100c477126076b6e3348
tree11196cf2091c3b9b56fb3e70d842ec569f596044
parent8ccd9c8cd1d1618f5e073c86ffcfe15f292eefe6
crypto: rockchip - do not do custom power management

The clock enable/disable at tfm init/exit is fragile,
if 2 tfm are init in the same time and one is removed just after,
it will leave the hardware uncloked even if a user remains.

Instead simply enable clocks at probe time.
We will do PM later.

Fixes: ce0183cb6464b ("crypto: rockchip - switch to skcipher API")
Reviewed-by: John Keeping <john@metanate.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/rockchip/rk3288_crypto.c
drivers/crypto/rockchip/rk3288_crypto.h
drivers/crypto/rockchip/rk3288_crypto_ahash.c
drivers/crypto/rockchip/rk3288_crypto_skcipher.c