diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2023-04-11 16:25:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-12 17:34:35 +0100 |
commit | 39a594dc0b4ac949edf221db33c7061c45e2c90b (patch) | |
tree | 9552ecfbdb7610ec697c9fd27def236db49f6feb /tools/perf/scripts/python/gecko.py | |
parent | f9dc6b875ec0a6a6d4091cd9603d193ec98c75a2 (diff) |
ASoC: cs35l56: Remove quick-cancelling of dsp_work()
Delete the 'removing' flag and don't kick init_completion to make a
quick cancel of dsp_work(). Just let it timeout on the wait for the
completion.
Simplify the code to standard cancelling or flushing of the work.
This avoids introducing corner cases from a layer of custom signalling.
It also avoids potential race conditions when system-suspend handling
is added.
Unless the hardware is broken, the dsp_work() will already have started
and passed the completion before the driver would want to cancel it.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/168122674746.26.16881587647873355224@mailman-core.alsa-project.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions