1
0
Fork 0

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>
5.4-rM2-2.2.x-imx-squashed
Bing Song 2020-08-10 11:12:44 +08:00
parent ccc0ba865e
commit 0581bdbb6d
1 changed files with 4 additions and 0 deletions

View File

@ -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);