]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:41 +0000 (09:32 -0700)
commit8eefb51971e841d2c0af529ddab02babbf8ca8d5
tree802165e38f4becc0a914ce4b7b7c9fb0e6cca471
parentb70d28dfb4641a54691f2bf133f30cc74588957e
usb-serial: add missing tests and debug lines

commit ff8324df1187b7280e507c976777df76c73a1ef1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c