diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2022-09-27 07:54:41 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-10-28 12:36:32 +0800 |
commit | c50ef1411c8cbad0c7db100c477126076b6e3348 (patch) | |
tree | 11196cf2091c3b9b56fb3e70d842ec569f596044 /drivers/crypto/rockchip/rk3288_crypto.h | |
parent | 8ccd9c8cd1d1618f5e073c86ffcfe15f292eefe6 (diff) | |
download | linux-c50ef1411c8cbad0c7db100c477126076b6e3348.tar.gz linux-c50ef1411c8cbad0c7db100c477126076b6e3348.tar.bz2 linux-c50ef1411c8cbad0c7db100c477126076b6e3348.zip |
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>
Diffstat (limited to 'drivers/crypto/rockchip/rk3288_crypto.h')
-rw-r--r-- | drivers/crypto/rockchip/rk3288_crypto.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/rockchip/rk3288_crypto.h b/drivers/crypto/rockchip/rk3288_crypto.h index 97278c2574ff..2fa7131e4060 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.h +++ b/drivers/crypto/rockchip/rk3288_crypto.h @@ -220,8 +220,6 @@ struct rk_crypto_info { int (*start)(struct rk_crypto_info *dev); int (*update)(struct rk_crypto_info *dev); void (*complete)(struct crypto_async_request *base, int err); - int (*enable_clk)(struct rk_crypto_info *dev); - void (*disable_clk)(struct rk_crypto_info *dev); int (*load_data)(struct rk_crypto_info *dev, struct scatterlist *sg_src, struct scatterlist *sg_dst); |