usb-serial: add missing tests and debug lines
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 1 Sep 2009 15:39:51 +0000 (11:39 -0400)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:41 +0000 (13:13 -0700)
commitff8324df1187b7280e507c976777df76c73a1ef1
treea4b16a4a422f3fca19eb38eb1b46056a1c50392d
parent74556123e034c8337b69a3ebac2f3a5fc0a97032
usb-serial: add missing tests and debug lines

This patch (as1290) adds some missing tests.  serial_down() isn't
supposed to do anything if the hardware hasn't been initialized, and
serial_close() isn't supposed to do anything if the tty has gotten a
hangup (because serial_hangup() takes care of shutting down the
hardware).

The patch also updates and adds a few debugging lines.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c