]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b8c46819eee54861c63955689144ce9c0c7c881
treea4b16a4a422f3fca19eb38eb1b46056a1c50392d
parent6521e5d2e0358ff5c525a8c44f680c2bd2b96c7a
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