ASoC: SOF: Intel: hda-ipc: read all IPC registers first
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 3 Jun 2019 16:20:29 +0000 (11:20 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2019 16:48:47 +0000 (17:48 +0100)
commit5dbeb8287421984a09c92a79c503f8bd41cf3fe7
tree604b5f36d5b8b53c30e7777cd257b3ac9ed6b276
parent3f58521bc81455bdfec2a44febf25ace8988a47f
ASoC: SOF: Intel: hda-ipc: read all IPC registers first

Align with hardware recommended sequences, and read all IPC registers
before doing any other actions. Playing with BUSY and DONE bits may
invalidate values.

The values read may not actually be necessary but at least this
provides a snapshot of the IPC registers with no consistency issues.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-ipc.c