Skip to content

Commit

Permalink
ASoC: SOF: reset enabled_cores state at suspend
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kv2019i authored and broonie committed Jun 1, 2021
1 parent a8437f0 commit b640e8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/sof/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)

/* reset FW state */
sdev->fw_state = SOF_FW_BOOT_NOT_STARTED;
sdev->enabled_cores_mask = 0;

return ret;
}
Expand Down

0 comments on commit b640e8a

Please sign in to comment.