All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: set reset_resume handler
@ 2011-10-25  8:37 Jesse Sung
  2011-10-25  8:40 ` Oliver Neukum
  0 siblings, 1 reply; 6+ messages in thread
From: Jesse Sung @ 2011-10-25  8:37 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: 812132

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]


On some machines, it seems that usb hubs do not get power while
being suspended. We can get something like this in dmesg:
     usb usb2: root hub lost power or was reset

When this is the case, .reset_resume is called instead of .resume.
If .reset_resume is not set, bluetooth modules would stay in an unusable
state because the resume function is not called.

Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
---
  drivers/bluetooth/btusb.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)



[-- Attachment #2: 0001-Bluetooth-set-reset_resume-handler.patch --]
[-- Type: text/x-patch, Size: 395 bytes --]

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index abfc4ee..db2a4d1 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1220,6 +1220,7 @@ static struct usb_driver btusb_driver = {
 #ifdef CONFIG_PM
 	.suspend	= btusb_suspend,
 	.resume		= btusb_resume,
+	.reset_resume	= btusb_resume,
 #endif
 	.id_table	= btusb_table,
 	.supports_autosuspend = 1,


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

end of thread, other threads:[~2011-10-25 18:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25  8:37 [PATCH] Bluetooth: set reset_resume handler Jesse Sung
2011-10-25  8:40 ` Oliver Neukum
2011-10-25 11:20   ` Jesse Sung
2011-10-25 11:43     ` Oliver Neukum
2011-10-25 14:48       ` Jesse Sung
2011-10-25 18:29         ` Oliver Neukum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.