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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 14 Dec 2014 16:23:42 +0000 (16:23 +0000)
commit03ccd424490f27867b7a0c6f28b4515f0ea41b54
treecd72b433064d854d3e8f1e1c988d956934f573ab
parent721292b00ea97481ac23bd116b7b1252e3efa9f7
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: Ben Hutchings <ben@decadent.org.uk>
drivers/bluetooth/btusb.c