]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt711-sdw: use cancel_work_sync() for .remove
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 4 Feb 2021 20:17:37 +0000 (14:17 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2021 13:13:20 +0000 (13:13 +0000)
commitcc083ab1c6d3d4a4bdd7741db21265db9560d820
tree553f8180139d5b4857d6e4f63df2f9176952290e
parent0ebd5c27f0e62585d6fba8a78e2d2f8888277853
ASoC: rt711-sdw: use cancel_work_sync() for .remove

Make sure the workqueues are not running after the .remove() callback,
which can lead to timeout errors.

A previous fix to use cancel_work_sync was applied for the suspend
case but the remove case is missing

Fixes: 66628856499a ('ASoC: rt711: wait for the delayed work to finish when the system suspends')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Link: https://lore.kernel.org/r/20210204201739.25206-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt711-sdw.c