Thread (5 messages) 5 messages, 4 authors, 2009-12-17

[PATCH]btusb:Prevent illtimed autosuspend

flat view
STALE6144d

From: Oliver Neukum <oliver@neukum.org>
Date: 2009-12-16 18:23:43
Subsystem: bluetooth drivers, the rest · Maintainers: Marcel Holtmann, Luiz Augusto von Dentz, Linus Torvalds

commit 0b72b0a05c1d950e4f35520926cc36bc01fb998a
Author: Oliver Neukum [off-list ref]
Date:   Mon Dec 14 22:09:49 2009 +0100

    btusb:Prevent illtimed autosuspend
    
    The device must be marked busy as it recieves data.
    
    Signed-off-by: Oliver Neukum [off-list ref]
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 4d29059..a699f09 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) {
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help