summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp_proxy.c
diff options
context:
space:
mode:
authorBing Song <bing.song@nxp.com>2020-08-10 11:12:44 +0800
committerBing Song <bing.song@nxp.com>2020-08-14 16:48:38 +0800
commit0581bdbb6d8db8c9a40d0ef9b5f524bf97c13e38 (patch)
tree4dacefa5af2fa0665ee03f498305500dad93b288 /sound/soc/fsl/fsl_dsp_proxy.c
parentccc0ba865eec878b201a0da50c240c793e01bb08 (diff)
MLK-24501-3 dsp: interrupt suspend when lpa.
Input buffer maybe return when suspending. Interrupt suspend if MU from DSP to ARM core. Signed-off-by: Bing Song <bing.song@nxp.com> Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp_proxy.c')
-rw-r--r--sound/soc/fsl/fsl_dsp_proxy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp_proxy.c b/sound/soc/fsl/fsl_dsp_proxy.c
index 46b65cb200b9..84271e0a17a5 100644
--- a/sound/soc/fsl/fsl_dsp_proxy.c
+++ b/sound/soc/fsl/fsl_dsp_proxy.c
@@ -5,6 +5,7 @@
// Copyright 2018 NXP
// Copyright (C) 2017 Cadence Design Systems, Inc.
+#include <linux/suspend.h>
#include "fsl_dsp_proxy.h"
#include "fsl_dsp.h"
@@ -233,6 +234,9 @@ irqreturn_t fsl_dsp_mu_isr(int irq, void *dev_id)
MU_ReceiveMsg(dsp_priv->mu_base_virtaddr, 0, &reg);
msghdr = (union icm_header_t)reg;
+ if (dsp_priv->dsp_is_lpa)
+ pm_system_wakeup();
+
if (msghdr.intr == 1) {
dev_dbg(dev, "INTR: Received ICM intr, msg 0x%08x\n",
msghdr.allbits);