From 8508b1a1032ae60eb4e4ee5e753381662ac082ae Mon Sep 17 00:00:00 2001 From: Prasad Kumpatla Date: Wed, 24 Jun 2020 20:38:03 +0530 Subject: [PATCH] asoc: codecs: remove cancel_delayed_work_sync to avoid race condition Remove cancel_delayed_work_sync in swr_down,to avoid race condition between skr_pa_event POST_PMD and swr_down.we are taking care of schedule_delayed_work and cancel_delayed_work_sync in PMU and PMD. Change-Id: I4f43ffc354ec930dabd7c4a8b2382f6064a24653 Signed-off-by: Prasad Kumpatla --- asoc/codecs/wsa881x.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/asoc/codecs/wsa881x.c b/asoc/codecs/wsa881x.c index adb4d91baf6b..401607731eee 100644 --- a/asoc/codecs/wsa881x.c +++ b/asoc/codecs/wsa881x.c @@ -1614,8 +1614,6 @@ static int wsa881x_swr_down(struct swr_device *pdev) else wsa881x->state = WSA881X_DEV_DOWN; - if (delayed_work_pending(&wsa881x->ocp_ctl_work)) - cancel_delayed_work_sync(&wsa881x->ocp_ctl_work); return ret; }