public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Marcel Holtmann <marcel@holtmann.org>,
	linux-usb@vger.kernel.org, linux-bluetooth@vger.kernel.org,
	Matthew Garrett <mjg59@srcf.ucam.org>
Subject: [PATCH]btusb:Prevent illtimed autosuspend
Date: Wed, 16 Dec 2009 19:23:43 +0100	[thread overview]
Message-ID: <200912161923.43127.oliver@neukum.org> (raw)

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

             reply	other threads:[~2009-12-16 18:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-16 18:23 Oliver Neukum [this message]
2009-12-16 18:26 ` [PATCH]btusb:Prevent illtimed autosuspend Matthew Garrett
2009-12-16 23:37   ` Marcel Holtmann
2009-12-16 23:54     ` Greg KH
2009-12-17  8:31       ` Oliver Neukum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200912161923.43127.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=mjg59@srcf.ucam.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox