]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 30 Nov 2010 18:28:07 +0000 (10:28 -0800)
commit30e90ca7871cb8e68151523763b9256c12b90a79
tree872111596aa69ff687fb4881cc9aa4c911d278bb
parent58edefd7ec8823c30e2a58c2f42179e19a0bc22f
USB: fix autosuspend bug in usb-serial

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>
CC: stable@kernel.org
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