diff options
author | Oliver Neukum <oliver@neukum.org> | 2009-12-16 18:23:43 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-17 20:12:49 (GMT) |
commit | 652fd781a52ad6e24b908cd8b83d12699754f253 (patch) | |
tree | 4d21fcd5a7924e2107d3b92893492a991d9d7106 /drivers | |
parent | b13f5860447a98daf0358a51fbff66154ac0663a (diff) | |
download | linux-fsl-qoriq-652fd781a52ad6e24b908cd8b83d12699754f253.tar.xz |
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')
-rw-r--r-- | drivers/bluetooth/btusb.c | 1 |
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) { |