]> git.karo-electronics.de Git - linux-beck.git/commit
n_tty: Remove reader wakeups for TTY_BREAK/TTY_PARITY chars
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 14 Oct 2015 11:52:27 +0000 (07:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:18:30 +0000 (21:18 -0700)
commitb3868e20f4ce21bb83c7a81bc50664d6a63596a8
tree560a38335bd092633037b170ffa02ee98ca57780
parent4bd0162264da0d71df7e37a12a544459ba7ddcde
n_tty: Remove reader wakeups for TTY_BREAK/TTY_PARITY chars

Waking the reader immediately upon receipt of TTY_BREAK or TTY_PARITY
chars has no effect on the outcome of read():
1. Only non-canonical/EXTPROC mode applies since canonical mode
   will not return data until a line termination is received anyway
2. EXTPROC mode - the reader will always be woken by the input worker
3. Non-canonical modes
   a. MIN == 0, TIME == 0
   b. MIN == 0, TIME > 0
   c. MIN > 0, TIME > 0
      minimum_to_wake is always 1 in these modes so the reader will always
      be woken by the input worker
   d. MIN > 0, TIME == 0
      although the reader will not be woken by the input worker unless the
      minimum data is received, the reader would not otherwise have
      returned the received data

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c