ASoC: cs35l56: Prevent unbalanced pm_runtime in dsp_work() on SoundWire
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 12 May 2023 14:42:37 +0000 (15:42 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 15 May 2023 01:35:12 +0000 (10:35 +0900)
commit17082e09b94cfe60bf39088f3d37c1f10e6c5928
tree05daaa76ff5455a355258ae381ce92172409c9ee
parent41c5305cc3d827d2ea686533777a285176ae01a0
ASoC: cs35l56: Prevent unbalanced pm_runtime in dsp_work() on SoundWire

Flush the SoundWire interrupt handler work instead of cancelling it.

When a SoundWire interrupt is triggered the pm_runtime is held
until the work has completed. It's therefore unsafe to cancel
the work, it must be flushed.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com
Link: https://lore.kernel.org/r/20230512144237.739000-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/codecs/cs35l56.c