OSDN Git Service

ASoC: SOF: topology: fix core enable sequence
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 2 Sep 2020 14:07:56 +0000 (17:07 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 4 Sep 2020 09:12:23 +0000 (10:12 +0100)
commit8c9ff1219aef657954540147522ceaecced71b2b
tree848635809f174d12829caaf6aa5729ff2059d774
parentd1c6c4a9fd3da5c735386b0cdb44d79667f10a1b
ASoC: SOF: topology: fix core enable sequence

Core power up involves 2 steps: The first step tries to
power up the core by setting the ADSPCS.SPA bit for the host-managed
cores. The second step involves sending the IPC to power up other
cores that are not host managed. The enabled_cores_mask should
be updated only when both these steps are successful. If the
IPC to the DSP fails, the host-managed core that was powered in
step 1 should be powered off before returning the error.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Keyon Jie <yang.jie@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200902140756.1427005-4-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c