Commit 1023de27 authored by Archie Pusaka's avatar Archie Pusaka Committed by Sasha Levin
Browse files

Bluetooth: Cancel sync command before suspend and power off



[ Upstream commit f4198635 ]

Some of the sync commands might take a long time to complete, e.g.
LE Create Connection when the peer device isn't responding might take
20 seconds before it times out. If suspend command is issued during
this time, it will need to wait for completion since both commands are
using the same sync lock.

This patch cancel any running sync commands before attempting to
suspend or adapter power off.

Signed-off-by: default avatarArchie Pusaka <apusaka@chromium.org>
Reviewed-by: default avatarYing Hsu <yinghsu@chromium.org>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: 2615fd9a ("Bluetooth: hci_sync: Fix overwriting request callback")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a96738eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment