From: Johan Hovold Date: Thu, 7 Mar 2013 14:55:53 +0000 (+0100) Subject: TTY: fix close of uninitialised ports X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~136^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b2588cadf9f131614cb251e34f7be1f4e1a2e08;p=pandora-kernel.git TTY: fix close of uninitialised ports Make sure we do not make tty-driver callbacks or wait for port to drain on uninitialised ports (e.g. when open failed) in tty_port_close_start(). No callback, such as flush_buffer or wait_until_sent, needs to be made on a port that has never been opened. Neither does it make much sense to add drain delay for an uninitialised port. Currently a drain delay of up to two seconds could be added when a tty fails to open. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed