From 7514e5c33e9434cb7ebf6918bc62777622e4ac44 Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Thu, 23 Jul 2020 14:37:06 -0700 Subject: [PATCH] soc: update wake interrupt check condition Call pm runtime functions from wakeup interrupt only if soundwire master is not in SSR and if dev up is true. Change-Id: Ic394be964437bdc009f1b4c5dd6e46673875b0df Signed-off-by: Vignesh Kulothungan --- soc/swr-mstr-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/swr-mstr-ctrl.c b/soc/swr-mstr-ctrl.c index eedd23ab3a13..77e98703b680 100644 --- a/soc/swr-mstr-ctrl.c +++ b/soc/swr-mstr-ctrl.c @@ -2131,7 +2131,7 @@ static irqreturn_t swrm_wakeup_interrupt(int irq, void *dev) trace_printk("%s enter\n", __func__); mutex_lock(&swrm->devlock); - if (!swrm->dev_up) { + if (swrm->state == SWR_MSTR_SSR || !swrm->dev_up) { if (swrm->wake_irq > 0) { if (unlikely(!irq_get_irq_data(swrm->wake_irq))) { pr_err("%s: irq data is NULL\n", __func__);