From 0581bdbb6d8db8c9a40d0ef9b5f524bf97c13e38 Mon Sep 17 00:00:00 2001 From: Bing Song Date: Mon, 10 Aug 2020 11:12:44 +0800 Subject: [PATCH] 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 Reviewed-by: Shengjiu Wang --- sound/soc/fsl/fsl_dsp_proxy.c | 4 ++++ 1 file changed, 4 insertions(+) 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 #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, ®); 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);