public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* fix bug in suspend/resume code of btusb
@ 2008-10-02 20:32 Oliver Neukum
  2008-10-02 22:12 ` Pavel Machek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oliver Neukum @ 2008-10-02 20:32 UTC (permalink / raw)
  To: Marcel Holtmann, linux-usb, linux-bluetooth, Pavel Machek

Hi,

this fixes an issue in btusb's suspend/resume support that strikes if
the adapter is suspended while the hci is down.
This probably fixes the bug Pavel sees with autosuspend and fixes a bug
for me. I am currently looking at issues with new hardware, but with this patch
it should work at least for the best hardware.

What tree should I base a clean patch against?

Signed-off-by: Oliver Neukum <oneukum@suse.de>

	Regards
		Oliver


---

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index ef24515..47ff028 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1072,6 +1069,10 @@ static int btusb_resume(struct usb_interface *intf)
 			clear_bit(HCI_RUNNING, &hdev->flags);
 			return ret;
 		}
+	} else {
+		spin_lock_irq(&data->lock);
+		clear_bit(BTUSB_SUSPENDING, &data->flags);
+		spin_unlock_irq(&data->lock);
 	}
 
 	if (hdev->conn_hash.acl_num > 0) {

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

* Re: fix bug in suspend/resume code of btusb
  2008-10-02 20:32 fix bug in suspend/resume code of btusb Oliver Neukum
@ 2008-10-02 22:12 ` Pavel Machek
  2008-10-03  6:34 ` Marcel Holtmann
  2008-10-06 11:09 ` Marcel Holtmann
  2 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2008-10-02 22:12 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: Marcel Holtmann, linux-usb, linux-bluetooth

Hi!

> this fixes an issue in btusb's suspend/resume support that strikes if
> the adapter is suspended while the hci is down.
> This probably fixes the bug Pavel sees with autosuspend and fixes a bug
> for me. I am currently looking at issues with new hardware, but with this patch
> it should work at least for the best hardware.

It seems to fix the problem here.

> What tree should I base a clean patch against?
> 
> Signed-off-by: Oliver Neukum <oneukum@suse.de>

Tested-by: Pavel Machek <pavel@suse.cz>

[okay, _lightly_ tested...]
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* Re: fix bug in suspend/resume code of btusb
  2008-10-02 20:32 fix bug in suspend/resume code of btusb Oliver Neukum
  2008-10-02 22:12 ` Pavel Machek
@ 2008-10-03  6:34 ` Marcel Holtmann
  2008-10-06 11:09 ` Marcel Holtmann
  2 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2008-10-03  6:34 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-usb, linux-bluetooth, Pavel Machek

Hi Oliver,

> this fixes an issue in btusb's suspend/resume support that strikes if
> the adapter is suspended while the hci is down.
> This probably fixes the bug Pavel sees with autosuspend and fixes a bug
> for me. I am currently looking at issues with new hardware, but with this patch
> it should work at least for the best hardware.
> 
> What tree should I base a clean patch against?

give me the weekend to sort out the trees. I want to get two extra fixes
into 2.6.27-rc9 and then we can start working on the suspend stuff for
2.6.28. I have pending patches that your patches should be based on so
we have a clean revision history and see how the evolved. I really hated
the quick fixing inside hci_usb and nobody ever could figure out what
actually made it work and what not.

Regards

Marcel



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

* Re: fix bug in suspend/resume code of btusb
  2008-10-02 20:32 fix bug in suspend/resume code of btusb Oliver Neukum
  2008-10-02 22:12 ` Pavel Machek
  2008-10-03  6:34 ` Marcel Holtmann
@ 2008-10-06 11:09 ` Marcel Holtmann
  2 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2008-10-06 11:09 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-usb, linux-bluetooth, Pavel Machek

Hi Oliver,

> this fixes an issue in btusb's suspend/resume support that strikes if
> the adapter is suspended while the hci is down.
> This probably fixes the bug Pavel sees with autosuspend and fixes a bug
> for me. I am currently looking at issues with new hardware, but with this patch
> it should work at least for the best hardware.
> 
> What tree should I base a clean patch against?

can you send patches against my bluetooth-testing tree:

http://git.kernel.org/?p=linux/kernel/git/holtmann/bluetooth-testing.git;a=summary

Regards

Marcel



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

end of thread, other threads:[~2008-10-06 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 20:32 fix bug in suspend/resume code of btusb Oliver Neukum
2008-10-02 22:12 ` Pavel Machek
2008-10-03  6:34 ` Marcel Holtmann
2008-10-06 11:09 ` Marcel Holtmann

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