1
0
Fork 0

MLK-24365-8 dsp: ignore suspend/resume.

ignore suspend/resume when LPA mode.

Signed-off-by: Bing Song <bing.song@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Bing Song 2020-06-16 13:15:29 +08:00
parent 9ebecb7a7b
commit 7c5ec722f0
1 changed files with 6 additions and 0 deletions

View File

@ -1600,6 +1600,9 @@ static int fsl_dsp_suspend(struct device *dev)
struct xf_proxy *proxy = &dsp_priv->proxy;
int ret = 0;
if (dsp_priv->dsp_is_lpa)
return ret;
if (proxy->is_ready & pm_runtime_active(dev)) {
ret = xf_cmd_send_suspend(proxy);
if (ret) {
@ -1619,6 +1622,9 @@ static int fsl_dsp_resume(struct device *dev)
struct xf_proxy *proxy = &dsp_priv->proxy;
int ret = 0;
if (dsp_priv->dsp_is_lpa)
return ret;
ret = pm_runtime_force_resume(dev);
if (ret)
return ret;