USB: support for autosuspend in sierra while online
authorOliver Neukum <oliver@neukum.org>
Fri, 4 Sep 2009 21:19:53 +0000 (23:19 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:39 +0000 (06:46 -0700)
commite6929a9020acbeb04d9a3ad9a88234c15be808fd
treecc720f3426c9dc7b0d4d6b4e2fd259fcf0487495
parentad45f1dc836cb175e9aeea927837dd48039d652c
USB: support for autosuspend in sierra while online

This implements support for autosuspend in the sierra driver while online.
Remote wakeup is used for reception. Transmission is facilitated with a queue
and the asynchronous autopm mechanism. To prevent races a private flag
for opened ports and a counter of running transmissions needs to be added.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Tested-by: Elina Pasheva <epasheva@sierrawireless.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/sierra.c