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 <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
  • Loading branch information
kv2019i authored and intel-lab-lkp committed May 28, 2021
1 parent 058efb4 commit 4cf932b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/sof/pm.c
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 4cf932b

Please sign in to comment.