Commit 652fd781 authored by Oliver Neukum's avatar Oliver Neukum Committed by Marcel Holtmann

Bluetooth: Prevent ill-timed autosuspend in USB driver

The device must be marked busy as it receives data.
Signed-off-by: default avatarOliver Neukum <oliver@neukum.org>
Tested-by: default avatarMatthew Garrett <mjg@redhat.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent b13f5860
...@@ -307,6 +307,7 @@ static void btusb_bulk_complete(struct urb *urb) ...@@ -307,6 +307,7 @@ static void btusb_bulk_complete(struct urb *urb)
return; return;
usb_anchor_urb(urb, &data->bulk_anchor); usb_anchor_urb(urb, &data->bulk_anchor);
usb_mark_last_busy(data->udev);
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) { if (err < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment