]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: hda: Introduce skip_imr_boot flag
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 12 Jul 2022 12:09:35 +0000 (15:09 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jul 2022 12:45:05 +0000 (13:45 +0100)
commit77863f185cb59edd443fb0fb65f4ee36d60a88fe
tree6d64176068b1e313e814ecc74cea25ebd0d1e53e
parent00da440da65146e89e8249e05efdb95f9219ad09
ASoC: SOF: Intel: hda: Introduce skip_imr_boot flag

Use a dedicated flag instead of directly checking the
sdev->system_suspend_target to decide if we need to skip IMR boot due to
too deep sleep state where the memory used for IMR booting will not retain
its content.

The skip_imr_boot flag will be set true during suspend if the target state
is deeper than S3 and reset back to false on successful boot to re-enable
IMR booting in shallower sleep states.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@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/20220712120936.28072-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dsp.c
sound/soc/sof/intel/hda-loader.c
sound/soc/sof/intel/hda.h