]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: hda: Correct the ROM/FW state reporting code
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 12 Jul 2022 12:57:32 +0000 (15:57 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jul 2022 12:59:57 +0000 (13:59 +0100)
commit9ce182174f61720337cbd03c1ebcd3a425a32181
treeed984ab5457e9f7e5fc4838c3d69bcee67389a86
parent00da440da65146e89e8249e05efdb95f9219ad09
ASoC: SOF: Intel: hda: Correct the ROM/FW state reporting code

The FSR (Firmware State Register) can be found at offset 0 in the SRAM and
it is holding information about the state of the ROM/FW.
In case of a boot failure it can be used to get the state where the boot
process got stuck, it does not itself contains error codes as such.

The error code (or the firmware state information) is stored in the next
soft register at offset 0x4.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220712125734.30512-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h