soc: swr-mstr: Fix unbalanced enable for wakeup irq

Enable IRQ for wakeup is called multiple times resulting in
throttling. This is because irq is not disabled after enablement.
Disable wakeup irq in runtime resume to fix the issue. Also
add check so that irq is not disabled more than once.

Change-Id: Ib5b7493298beb3ca4bcf78b2adbd7d4ac9ce6111
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
Vatsal Bucha
2019-10-31 11:45:36 +05:30
committed by Aditya Bavanari
parent 7ae9fa55cd
commit 8bcaeab611
2 changed files with 42 additions and 4 deletions

View File

@@ -124,6 +124,7 @@ struct swr_mstr_ctrl {
struct mutex mlock;
struct mutex reslock;
struct mutex pm_lock;
struct mutex irq_lock;
u32 swrm_base_reg;
char __iomem *swrm_dig_base;
char __iomem *swrm_hctl_reg;