CR_2517:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warning
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Tue, 1 Nov 2022 06:40:42 +0000 (14:40 +0800)
committerJia Jie Ho <jiajie.ho@starfivetech.com>
Tue, 1 Nov 2022 06:40:42 +0000 (14:40 +0800)
commitaaefc8671d15d03741010417fe7a9e0d11c8996d
tree614c5d4779499ee6bb59e280c0779b54265961ec
parentf960eb1402bcd993cc55105f27f9a7f393e41a68
CR_2517:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warning

Crypto driver will probe multiple times waiting for
DMA to be ready, each time calling pm_runtime_enable().
Only call pm_runtime_enable() when it's not already enabled.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
drivers/crypto/starfive/jh7110/jh7110-sec.c