1
0
Fork 0

MLK-24263-6 ASOC: SOF: Do not boot the DSP when no user requested it

SOF core will not call device specific System suspend
if the DSP is not booted (this is mostly because the way
PCI handles PM, which before system suspend it activates
the devices calling runtime resume).

So, in case we use OF we need to make sure that a simple
system suspend/resume cycle where the DSP is already off
will not turn on the DSP.

This part was completely re-written in the upstream kernel,
and this change is just a summary of the changes in upstream.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Daniel Baluta 2020-06-10 19:15:59 +03:00
parent 6de9517788
commit 95ae3b68a0
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ static int sof_resume(struct device *dev, bool runtime_resume)
return ret;
}
if (!runtime_resume && pm_runtime_suspended(sdev->dev))
return 0;
sdev->fw_state = SOF_FW_BOOT_PREPARE;
/* load the firmware */