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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 16:35:12 +0000 (09:35 -0700)
commit41ba8fa07c9aa5c18ba3fd14917b53c4367d3ea7
treeaacdd0f0ad709488bc4813724639fbcaa41ec5e6
parent90f9a6a427abd19c8d304ecbac034deb39d0737c
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/btusb.c