Skip to content

Commit b640e8a

Browse files
kv2019ibroonie
authored andcommitted
ASoC: SOF: reset enabled_cores state at suspend
The recent changes to use common code to power up/down DSP cores also removed the reset of the core state at suspend. It turns out this is still needed. When the firmware state is reset to SOF_FW_BOOT_NOT_STARTED, also enabled_cores should be reset, and existing DSP drivers depend on this. BugLink: thesofproject#2824 Fixes: 42077f0 ("ASoC: SOF: update dsp core power status in common APIs") Signed-off-by: Kai Vehmanen <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a8437f0 commit b640e8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/sof/pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)
256256

257257
/* reset FW state */
258258
sdev->fw_state = SOF_FW_BOOT_NOT_STARTED;
259+
sdev->enabled_cores_mask = 0;
259260

260261
return ret;
261262
}

0 commit comments

Comments
 (0)