Commit b54b3a4e authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: SOF: pm: Force DSP off on suspend in BOOT_FAILED state also

Try to force the DSP to be turned off next time if the fw_state is either
CRASHED or BOOT_FAILED when a suspend happens in order to attempt a clean
boot to recover.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: default avatarRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20211223113628.18582-14-peter.ujfalusi@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e2406275
...@@ -315,10 +315,11 @@ int snd_sof_prepare(struct device *dev) ...@@ -315,10 +315,11 @@ int snd_sof_prepare(struct device *dev)
sdev->system_suspend_target = SOF_SUSPEND_S3; sdev->system_suspend_target = SOF_SUSPEND_S3;
/* /*
* if the firmware is crashed then we try to aim for S3 to reboot the * if the firmware is crashed or boot failed then we try to aim for S3
* firmware * to reboot the firmware
*/ */
if (sdev->fw_state == SOF_FW_CRASHED) if (sdev->fw_state == SOF_FW_CRASHED ||
sdev->fw_state == SOF_FW_BOOT_FAILED)
return 0; return 0;
if (!desc->use_acpi_target_states) if (!desc->use_acpi_target_states)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment