USB: fix autosuspend bug in usb-serial
commitc42fe729ad67abe81b2e79d48134db10c6a0466d
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 29 Nov 2010 15:17:22 +0000 (29 10:17 -0500)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:13 +0000 (14 23:40 +0100)
treec5db1de02a259a7839c6e28821a55b916cc71df7
parent6c2ad879feaf8bc3ac8a6b031437c59936b4646b
USB: fix autosuspend bug in usb-serial

commit abf03184a31a3286fc0ab30f838ddee8ba9f9b7b upstream.

This patch (as1437) fixes a bug in the usb-serial autosuspend
handling.  Since the usb-serial core now has autosuspend support, it
must set the .supports_autosuspend member in every serial driver it
registers.  Otherwise the usb_autopm_get_interface() call won't work.

This fixes Bugzilla #23012.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Kevin Smith <thirdwiggin@gmail.com>
Reported-and-tested-by: Simon Gerber <gesimu@gmail.com>
Reported-and-tested-by: Matteo Croce <matteo@openwrt.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/usb/serial/usb-serial.c