diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2023-04-11 18:25:25 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-04-12 19:34:32 +0300 |
commit | 7816e3407110d887726687740aa18c9ce8eeb0d2 (patch) | |
tree | 6d3e70e85c0539e1af87408616b471b65f1ad888 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7b98a1efbabfd729441f46823b24432f2c32deeb (diff) | |
download | linux-7816e3407110d887726687740aa18c9ce8eeb0d2.tar.xz |
ASoC: cs35l56: Skip first init_completion wait in dsp_work if init_done
At the start of dsp_work() only wait for init_completion if !init_done.
This allows system suspend to re-queue dsp_work() without having to
do a dummy complete() of init_completion.
A dummy completion in system suspend would have to be conditional on
init_done. But that would create a possible race condition between our
system resume and cs35l56_init() in the corner case that we suspend right
after the SoundWire core has enumerated and reported ATTACHED.
It is safer and simpler to have cs35l56_init() as the only place that
init_completion is completed, and dsp_work() as the only place that
it is consumed.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230411152528.329803-4-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions