summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/jz4770.c
diff options
context:
space:
mode:
authorKeyon Jie <yang.jie@linux.intel.com>2020-05-26 23:36:40 +0300
committerMark Brown <broonie@kernel.org>2020-05-27 16:06:59 +0300
commit3d2e5c480742b4a22534e72e2647b6c8c98a94a4 (patch)
treee5a5d86104b8cc4af56926cf05dacb4d1d7f93b1 /sound/soc/codecs/jz4770.c
parent3d3d1fb9ce34bc045b9d140a5f2ec531eff6a0fe (diff)
downloadlinux-3d2e5c480742b4a22534e72e2647b6c8c98a94a4.tar.xz
ASoC: SOF: Intel: BYT: harden IPC initialization and handling
On probe and reset, we should not touch the SHIM_IMRD register since it is configured by firmware. The driver only configures SHIM_IMRX with the BUSY interrupt enabled by default and DONE interrupt disabled. When sending an IPC message, the DONE interrupt is enabled until the DSP response is provided. This sequence hardens the IPC communication and avoid interrupt-related issues when adding/removing modules or during system suspend-resume transitions. Signed-off-by: Keyon Jie <yang.jie@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20200526203640.25980-9-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/jz4770.c')
0 files changed, 0 insertions, 0 deletions