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
parent
6de9517788
commit
95ae3b68a0
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue