ASoC: SOF: Intel: hda: report error only for the last ROM init iteration
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 25 Aug 2020 23:50:34 +0000 (16:50 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 26 Aug 2020 12:19:11 +0000 (13:19 +0100)
commit53ec753137f2a407c949cef3158e89ece7688637
tree2c3015d439911f82d50c9ca0dcd60d0ae723ca3a
parent9db6f4329cd2c16499d1c165311092f1b5c45a51
ASoC: SOF: Intel: hda: report error only for the last ROM init iteration

The FW boot sequence includes multiple attempts for ROM init.
When it does take more than one attempt, we should not log the
errors encountered during the failed attempts and only log them
during the final iteration.

Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200825235040.1586478-2-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-loader.c