linux/drivers/crypto/ccree
Geert Uytterhoeven 8c7849a302 crypto: ccree - simplify Runtime PM handling
Currently, a large part of the probe function runs before Runtime PM is
enabled.  As the driver manages the device's clock manually, this may
work fine on some systems, but may break on platforms with a more
complex power hierarchy.

Fix this by moving the initialization of Runtime PM before the first
register access (in cc_wait_for_reset_completion()), and putting the
device to sleep only after the last access (in cc_set_ree_fips_status()).

This allows to remove the pm_on flag, which was used to track manually
if Runtime PM had been enabled or not.
Remove the cc_pm_{init,go,fini}() wrappers, as they are called only
once, and obscure operation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-02-22 09:25:44 +08:00
..
cc_aead.c crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_aead.h crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_buffer_mgr.c crypto: ccree - make mlli_params.mlli_virt_addr void * 2020-02-22 09:25:43 +08:00
cc_buffer_mgr.h crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_cipher.c crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_cipher.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_crypto_ctx.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_debugfs.c crypto: ccree - fix debugfs register access while suspended 2020-02-22 09:25:42 +08:00
cc_debugfs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_driver.c crypto: ccree - simplify Runtime PM handling 2020-02-22 09:25:44 +08:00
cc_driver.h crypto: ccree - simplify Runtime PM handling 2020-02-22 09:25:44 +08:00
cc_fips.c crypto: ccree - fix typos in comments 2019-12-11 16:36:54 +08:00
cc_fips.h crypto: ccree - add function to handle cryptocell tee fips error 2019-04-25 15:38:16 +08:00
cc_hash.c crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_hash.h crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_host_regs.h crypto: ccree - add HW engine config check 2019-06-27 14:28:00 +08:00
cc_hw_queue_defs.h crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_kernel_regs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_lli_defs.h crypto: ccree - allow more AEAD assoc data fragments 2019-04-25 15:38:15 +08:00
cc_pm.c crypto: ccree - simplify Runtime PM handling 2020-02-22 09:25:44 +08:00
cc_pm.h crypto: ccree - simplify Runtime PM handling 2020-02-22 09:25:44 +08:00
cc_request_mgr.c crypto: ccree - fix retry handling in cc_send_sync_request() 2020-02-22 09:25:43 +08:00
cc_request_mgr.h crypto: ccree - fix PM race condition 2020-01-22 16:21:10 +08:00
cc_sram_mgr.c crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_sram_mgr.h crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
Makefile crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00