diff options
author | Oliver Neukum <oliver@neukum.org> | 2009-08-24 17:44:59 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-24 19:31:24 -0400 |
commit | 7bee549e197c9c0e92b89857a409675c1d5e9dff (patch) | |
tree | de18e51c34faf4c53fd2bd6b7f0c8ab2b2caf6e5 /drivers/pcmcia/sa1100_neponset.c | |
parent | d2e353f7c3c5fbb3add0341c10ae167ee745d23b (diff) |
Bluetooth: Add USB autosuspend support to btusb driver
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>
Diffstat (limited to 'drivers/pcmcia/sa1100_neponset.c')
0 files changed, 0 insertions, 0 deletions