ASoC: SOF: Intel: cnl-ipc: read all IPC registers first
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 3 Jun 2019 16:20:26 +0000 (11:20 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2019 16:48:02 +0000 (17:48 +0100)
commitc24b1b7279398c9140a8130b4c20db0c06d5dfc4
tree12df5df3bfc75605ba1846e6e270f3f36f8d0fd5
parent6fbbc18ead0f4f64a722f7e325046e5860d2c52b
ASoC: SOF: Intel: cnl-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/cnl.c