soc: swr-mstr-ctrl: add new lock to sync runtime_resume and runtime_suspend
runtime_suspend may get from multi functions and reslock is unlock and lock inbetween which may cause clk count mismatch with multi rutime_suspend called. Add new lock to make sure runtime_suspend is run in sequence. Change-Id: Ie465ded6dc1db1244035e9f4d216466b630df82b Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
@@ -135,6 +135,7 @@ struct swr_mstr_ctrl {
|
||||
struct mutex reslock;
|
||||
struct mutex pm_lock;
|
||||
struct mutex irq_lock;
|
||||
struct mutex runtime_lock;
|
||||
u32 swrm_base_reg;
|
||||
char __iomem *swrm_dig_base;
|
||||
char __iomem *swrm_hctl_reg;
|
||||
|
Reference in New Issue
Block a user