From: Thomas Gleixner <tglx@linutronix.de>
To: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Cc: Keith Packard <keithp@keithp.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-bluetooth@vger.kernel.org
Subject: Re: 2.6.39-rc2 regression: X201s fails to resume b77dcf8460ae57d4eb9fd3633eb4f97b8fb20716
Date: Mon, 11 Apr 2011 18:12:22 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.1104111807480.4501@localhost6.localdomain6> (raw)
In-Reply-To: <20110409000857.GB25581@piper>
On Fri, 8 Apr 2011, Vinicius Costa Gomes wrote:
> Hi Keith,
>
> On 16:13 Fri 08 Apr, Keith Packard wrote:
> > On Fri, 8 Apr 2011 23:44:51 +0200 (CEST), Thomas Gleixner <tglx@linutronix.de> wrote:
> >
> > > Can the bluetooth folks please have a look at that ASAP? The obvious
> > > fast fix for Linus tree is to revert the second hunk for now, but this
> > > needs to be fixed proper.
> >
> > Who will submit this patch? I'd rather have your name on it so that
> > people come complain at you...
>
> I took a shot at it and just sent a patch (also attached for convenience)
> that should solve the problem.
Aaarg. No. That patch reverts both hunks.
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -586,9 +586,6 @@ static int hci_dev_do_close(struct hci_dev *hdev)
hci_req_cancel(hdev, ENODEV);
hci_req_lock(hdev);
- /* Stop timer, it might be running */
- del_timer_sync(&hdev->cmd_timer);
-
if (!test_and_clear_bit(HCI_UP, &hdev->flags)) {
hci_req_unlock(hdev);
return 0;
As I said before you need that first hunk to stay for the case where
there is no device up and you return via the !HCI_UP check. You just
moved back to the state before as the stupid timer is active for
whatever reason even when HCI_UP is not set.
@@ -618,6 +615,9 @@ static int hci_dev_do_close(struct hci_dev *hdev)
clear_bit(HCI_INIT, &hdev->flags);
}
+ /* Stop timer, it might be running */
+ del_timer_sync(&hdev->cmd_timer);
+
/* Kill cmd task */
tasklet_kill(&hdev->cmd_task);
next prev parent reply other threads:[~2011-04-11 16:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <yun1v1fj024.fsf@aiko.keithp.com>
[not found] ` <alpine.LFD.2.00.1104070022280.3971@localhost6.localdomain6>
2011-04-08 21:44 ` 2.6.39-rc2 regression: X201s fails to resume b77dcf8460ae57d4eb9fd3633eb4f97b8fb20716 Thomas Gleixner
2011-04-08 23:13 ` Keith Packard
2011-04-09 0:08 ` Vinicius Costa Gomes
2011-04-09 2:03 ` Keith Packard
2011-04-11 15:58 ` Gustavo F. Padovan
2011-04-11 16:13 ` Thomas Gleixner
2011-04-11 16:12 ` Thomas Gleixner [this message]
2011-04-11 21:40 ` Marcel Holtmann
2011-04-11 22:16 ` Thomas Gleixner
2011-04-11 22:19 ` Thomas Gleixner
2011-04-11 22:25 ` Gustavo F. Padovan
2011-04-12 18:09 ` Gustavo F. Padovan
2011-04-12 18:28 ` Thomas Gleixner
2011-04-11 16:34 ` Alan Cox
2011-04-11 16:59 ` Vinicius Gomes
2011-04-21 21:50 ` Keith Packard
2011-04-21 22:59 ` Gustavo F. Padovan
2011-04-22 0:04 ` Keith Packard
2011-04-23 16:37 ` Gustavo F. Padovan
2011-05-03 7:27 ` Stefan Seyfried
2011-05-03 14:48 ` Keith Packard
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=alpine.LFD.2.00.1104111807480.4501@localhost6.localdomain6 \
--to=tglx@linutronix.de \
--cc=keithp@keithp.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vinicius.gomes@openbossa.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