ASoC: SOF: reset enabled_cores state at suspend
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 28 May 2021 14:43:30 +0000 (17:43 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 1 Jun 2021 13:03:01 +0000 (14:03 +0100)
commitb640e8a4bd24e17ce24a064d704aba14831651a8
tree97c9646904b299154e7cdcc302212ef6a5382ed9
parenta8437f05384cb472518ec21bf4fffbe8f0a47378
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: https://github.com/thesofproject/linux/issues/2824
Fixes: 42077f08b3 ("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>
Link: https://lore.kernel.org/r/20210528144330.2551-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pm.c