aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2009-12-16 19:23:43 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-12-17 12:12:49 -0800
commit652fd781a52ad6e24b908cd8b83d12699754f253 (patch)
tree4d21fcd5a7924e2107d3b92893492a991d9d7106 /drivers/bluetooth
parentb13f5860447a98daf0358a51fbff66154ac0663a (diff)
downloadkernel_samsung_espresso10-652fd781a52ad6e24b908cd8b83d12699754f253.zip
kernel_samsung_espresso10-652fd781a52ad6e24b908cd8b83d12699754f253.tar.gz
kernel_samsung_espresso10-652fd781a52ad6e24b908cd8b83d12699754f253.tar.bz2
Bluetooth: Prevent ill-timed autosuspend in USB driver
The device must be marked busy as it receives data. Signed-off-by: Oliver Neukum <oliver@neukum.org> Tested-by: Matthew Garrett <mjg@redhat.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btusb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 4d29059..a699f09 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -307,6 +307,7 @@ static void btusb_bulk_complete(struct urb *urb)
return;
usb_anchor_urb(urb, &data->bulk_anchor);
+ usb_mark_last_busy(data->udev);
err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) {