]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: Fix issue with USB suspend in btusb driver
authorChampion Chen <champion_chen@realsil.com.cn>
Sat, 6 Sep 2014 19:06:08 +0000 (14:06 -0500)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:11:24 +0000 (15:11 +0100)
commit24fdb4c16fd0486ed2781c3877344e271c050f05
tree44f373e1844f1a58a70a726bd0aba18f545a76dc
parentd511101482bad689a3f19afa8d44d834e5c0e0a9
Bluetooth: Fix issue with USB suspend in btusb driver

commit 85560c4a828ec9c8573840c9b66487b6ae584768 upstream.

Suspend could fail for some platforms because
btusb_suspend==> btusb_stop_traffic ==> usb_kill_anchored_urbs.

When btusb_bulk_complete returns before system suspend and resubmits
an URB, the system cannot enter suspend state.

Signed-off-by: Champion Chen <champion_chen@realsil.com.cn>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/bluetooth/btusb.c