提交 652fd781 编写于 作者: O Oliver Neukum 提交者: Marcel Holtmann

Bluetooth: Prevent ill-timed autosuspend in USB driver

The device must be marked busy as it receives data.
Signed-off-by: NOliver Neukum <oliver@neukum.org>
Tested-by: NMatthew Garrett <mjg@redhat.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 b13f5860
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册