mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue