Bluetooth: Prevent ill-timed autosuspend in USB driver
authorOliver Neukum <[email protected]>
Wed, 16 Dec 2009 18:23:43 +0000 (19:23 +0100)
committerMarcel Holtmann <[email protected]>
Thu, 17 Dec 2009 20:12:49 +0000 (12:12 -0800)
The device must be marked busy as it receives data.

Signed-off-by: Oliver Neukum <[email protected]>
Tested-by: Matthew Garrett <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
drivers/bluetooth/btusb.c

index 4d29059967517f2a54c02eabc55ef76f84ba1855..a699f09ddf7cac819eba8a13514688895abf0af6 100644 (file)
@@ -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) {