From: Oliver Neukum Date: Mon, 24 Aug 2009 21:44:59 +0000 (+0200) Subject: Bluetooth: Add USB autosuspend support to btusb driver X-Git-Tag: v2.6.32-rc1~703^2~221^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bee549e197c9c0e92b89857a409675c1d5e9dff;p=pandora-kernel.git 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 Tested-by: Sarah Sharp Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed