Skip to content

Commit

Permalink
Bluetooth: Add USB autosuspend support to btusb driver
Browse files Browse the repository at this point in the history
This patch adds support of USB autosuspend to the btusb driver.

If the device doesn't support remote wakeup, simple support based on
up/down is provided. If the device supports remote wakeup, additional
support for autosuspend while the interface is up is provided. This is
done by queueing URBs in an anchor structure and waking the device up
from a work queue on sending. Reception triggers remote wakeup.

The last busy facility of the USB autosuspend code is used. To close
a race between autosuspend and transmission, a counter of ongoing
transmissions is maintained.

Add #ifdefs for CONFIG_PM as necessary.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Tested-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Oliver Neukum authored and Marcel Holtmann committed Aug 24, 2009
1 parent d2e353f commit 7bee549
Showing 1 changed file with 174 additions and 20 deletions.
Loading

0 comments on commit 7bee549

Please sign in to comment.