tty: Move packet mode flow control notifications to pty driver
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 10 Sep 2014 19:06:32 +0000 (15:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:19:35 +0000 (21:19 -0700)
commit01adc80706f80a583948db6768c5571204cd5f99
tree070bd77695ad97ee4d8541a4f97dc78d049a04d8
parentf9e053dcfc02b0ad29daec8524fb1afe09774976
tty: Move packet mode flow control notifications to pty driver

When a master pty is set to packet mode, flow control changes to
the slave pty cause notifications to the master pty via reads and
polls. However, these tests are occurring for all ttys, not
just ptys.

Implement flow control packet mode notifications in the pty driver.
Only the slave side implements the flow control handlers since
packet mode is asymmetric; the master pty receives notifications
for slave-side changes, but not vice versa.

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