Home
last modified time | relevance | path

Searched hist:"0 b2588cadf9f131614cb251e34f7be1f4e1a2e08" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/tty/
H A Dtty_port.cdiff 0b2588cadf9f131614cb251e34f7be1f4e1a2e08 Thu Mar 07 08:55:53 CST 2013 Johan Hovold <jhovold@gmail.com> 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 <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>