aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorRichard Fitzgerald <[email protected]>2023-04-11 16:25:25 +0100
committerMark Brown <[email protected]>2023-04-12 17:34:32 +0100
commit7816e3407110d887726687740aa18c9ce8eeb0d2 (patch)
tree6d3e70e85c0539e1af87408616b471b65f1ad888 /drivers/usb/cdns3/cdns3-debug.h
parent7b98a1efbabfd729441f46823b24432f2c32deeb (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions