From: Oliver Neukum Date: Wed, 16 Dec 2009 18:23:43 +0000 (+0100) Subject: Bluetooth: Prevent ill-timed autosuspend in USB driver X-Git-Tag: firefly_0821_release~11625^2~460 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f661c3feba2d9455614d64ba0f73f182a1b39456;p=firefly-linux-kernel-4.4.55.git Bluetooth: Prevent ill-timed autosuspend in USB driver commit 652fd781a52ad6e24b908cd8b83d12699754f253 upstream. The device must be marked busy as it receives data. Signed-off-by: Oliver Neukum Tested-by: Matthew Garrett Signed-off-by: Marcel Holtmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 44bc8bbabf54..1be76318f516 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -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) {