]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: sierra driver autopm fixes
authorElina Pasheva <epasheva@sierrawireless.com>
Tue, 27 Oct 2009 20:49:59 +0000 (13:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Oct 2009 21:57:33 +0000 (14:57 -0700)
commit441b161f4f6383e5ec562644a65bbe6dacfb074e
treed267730ea50d7c48eafbe751e1d8841ddb5240f0
parent6103f7e874e64b1e785dc192b7776f00036e9806
USB: serial: sierra driver autopm fixes

This patch presents fixes for the autosuspend feature implementation in
sierra usb serial driver in  functions sierra_open(), sierra_close() and
stop_read_write_urbs().

The patch "sierra_close() must resume the device before it notifies it
of a closure" submitted by Oliver Neukum on Wed, October 14 has been
merged as fix in sierra_close() function.

The bug fix  in sierra_open() function restores the autopm interface
state on error condition.

The bug fix in in stop_read_write_urbs() function assures that both
receive and interrupt urbs are recycled.

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