USB: serial: full autosuspend support for the option driver
authorOliver Neukum <oliver@neukum.org>
Wed, 1 Jul 2009 14:00:32 +0000 (16:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:25 +0000 (06:46 -0700)
commit383cedc3bb435de7a27d31a92d622413daa5cb20
tree1e2a24ac637c3287f9dac5ee0d44cded3c84dce3
parentab26d20f3ef1105d889f702cd01fba8c6fb32f73
USB: serial: full autosuspend support for the option driver

this adds autosupport usable even in an always online mode.

- enables remote wakeup on open
- autoresume for sending
- timeout based autosuspend if nothing is sent or recieved
- autosuspend without remote wakeup support on open/close

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Tested-off-by: Zhao Ming <zhao.ming9@zte.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c