public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH]btusb:Prevent illtimed autosuspend
@ 2009-12-16 18:23 Oliver Neukum
  2009-12-16 18:26 ` Matthew Garrett
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Neukum @ 2009-12-16 18:23 UTC (permalink / raw)
  To: Marcel Holtmann, linux-usb, linux-bluetooth, Matthew Garrett

commit 0b72b0a05c1d950e4f35520926cc36bc01fb998a
Author: Oliver Neukum <oliver@neukum.org>
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 <oliver@neukum.org>

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) {

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-17  8:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 18:23 [PATCH]btusb:Prevent illtimed autosuspend Oliver Neukum
2009-12-16 18:26 ` Matthew Garrett
2009-12-16 23:37   ` Marcel Holtmann
2009-12-16 23:54     ` Greg KH
2009-12-17  8:31       ` Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox