USB: serial: sierra driver send_setup() autopm fix
authorElina Pasheva <epasheva@sierrawireless.com>
Fri, 16 Oct 2009 19:04:54 +0000 (12:04 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Oct 2009 21:57:33 +0000 (14:57 -0700)
commit3c77d5137d3f4ff41721e9b4f4812db56a6065c0
treec64aec5e5d05e7087c8d9703b51d0d3454d2b4c4
parent40ac7b62d8c132c73a709bd83858b3419f38ec23
USB: serial: sierra driver send_setup() autopm fix

This patch presents a fix for the autosuspend feature implementation in
sierra usb serial driver for function sierra_send_setup().  Because it
is possible to call sierra_send_setup() before sierra_open() or after
sierra_close() we added a get/put interface activity to assure that the
usb control can happen even when the device is autosuspended.

Signed-off-by: Elina Pasheva <epasheva@sierrawireless.com>
Tested-by: Matthew Safar <msafar@sierrawireless.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/sierra.c