ASoC: cs35l45: Prevents spinning during runtime suspend
authorRicardo Rivera-Matos <rriveram@opensource.cirrus.com>
Wed, 6 Dec 2023 16:03:18 +0000 (10:03 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 6 Dec 2023 23:06:57 +0000 (23:06 +0000)
commita0ffa8115e1ea9786b03edc3f431d2f4ef3e7a2e
treec3ca40c8b00d006a222e7304bd256217f254637b
parentc3c8b088949b9ccb88da2f84d3c3cc06580a6a43
ASoC: cs35l45: Prevents spinning during runtime suspend

Masks the "DSP Virtual Mailbox 2 write" interrupt when before
issuing the hibernate command to the DSP. The interrupt is
unmasked when exiting runtime suspend as it is required for
DSP operation.

Without this change the DSP fires an interrupt when hibernating
causing the system spin between runtime suspend and runtime
resume.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20231206160318.1255034-4-rriveram@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l45.c