Commit 25518c68 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman

n_tty: Correct unthrottle-with-buffer-flush comments

The driver is no longer unthrottled on buffer reset, so remove
comments that claim it is.
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 977066e7
...@@ -198,9 +198,8 @@ static void put_tty_queue(unsigned char c, struct n_tty_data *ldata) ...@@ -198,9 +198,8 @@ static void put_tty_queue(unsigned char c, struct n_tty_data *ldata)
* reset_buffer_flags - reset buffer state * reset_buffer_flags - reset buffer state
* @tty: terminal to reset * @tty: terminal to reset
* *
* Reset the read buffer counters, clear the flags, * Reset the read buffer counters and clear the flags.
* and make sure the driver is unthrottled. Called * Called from n_tty_open() and n_tty_flush_buffer().
* from n_tty_open() and n_tty_flush_buffer().
* *
* Locking: tty_read_lock for read fields. * Locking: tty_read_lock for read fields.
*/ */
...@@ -239,17 +238,15 @@ static void n_tty_packet_mode_flush(struct tty_struct *tty) ...@@ -239,17 +238,15 @@ static void n_tty_packet_mode_flush(struct tty_struct *tty)
* n_tty_flush_buffer - clean input queue * n_tty_flush_buffer - clean input queue
* @tty: terminal device * @tty: terminal device
* *
* Flush the input buffer. Called when the line discipline is * Flush the input buffer. Called when the tty layer wants the
* being closed, when the tty layer wants the buffer flushed (eg * buffer flushed (eg at hangup) or when the N_TTY line discipline
* at hangup) or when the N_TTY line discipline internally has to * internally has to clean the pending queue (for example some signals).
* clean the pending queue (for example some signals).
* *
* Locking: ctrl_lock, read_lock. * Locking: ctrl_lock, read_lock.
*/ */
static void n_tty_flush_buffer(struct tty_struct *tty) static void n_tty_flush_buffer(struct tty_struct *tty)
{ {
/* clear everything and unthrottle the driver */
reset_buffer_flags(tty); reset_buffer_flags(tty);
if (tty->link) if (tty->link)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment