diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2023-04-11 17:25:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-12 18:34:35 +0200 |
commit | 39a594dc0b4ac949edf221db33c7061c45e2c90b (patch) | |
tree | 9552ecfbdb7610ec697c9fd27def236db49f6feb /.clang-format | |
parent | ASoC: cs35l56: Add basic system suspend handling (diff) | |
download | linux-39a594dc0b4ac949edf221db33c7061c45e2c90b.tar.xz linux-39a594dc0b4ac949edf221db33c7061c45e2c90b.zip |
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 '')
0 files changed, 0 insertions, 0 deletions