USB: fix autosuspend bug in usb-serial
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 29 Nov 2010 15:17:22 +0000 (10:17 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:10 +0000 (13:33 -0800)
commit6723027da21ab03e4da5ec4393b95b1366aca587
treea9c6ca15e21fe38ac8fb544f6a9035ba0218da1d
parent4d5e886efc9cf9c410d9351c76fdf5bb70383da5
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>
drivers/usb/serial/usb-serial.c