]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8619fcb83c3571622f9e594740e1ac6a65728361
tree848635809f174d12829caaf6aa5729ff2059d774
parent4d4f894331a3cf718c7fc8edfe55584c61e5a54e
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