Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4f80306 authored by Manoj Prabhu B's avatar Manoj Prabhu B
Browse files

diag: Remove unnecessary workqueue flush while peripheral ssr



When Peripheral is going down as part of ssr, flushing the
scheduled workqueues is not needed as part of cleanup.

Change-Id: Id5222d6f65166cd8c8ad770bfdb56253a5284c8e
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent ec453551
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1304,9 +1304,6 @@ int diagfwd_channel_close(struct diagfwd_info *fwd_info)
	if (!fwd_info)
		return -EIO;

	if (fwd_info->type == TYPE_CNTL)
		flush_workqueue(driver->cntl_wq);

	mutex_lock(&driver->diagfwd_channel_mutex[fwd_info->peripheral]);
	fwd_info->ch_open = 0;
	if (fwd_info && fwd_info->c_ops && fwd_info->c_ops->close)