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>
This commit is contained in:
parent
b13f586044
commit
652fd781a5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue