tty/hvc_iucv: Disconnect IUCV connection when lowering DTR
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 2 Jul 2013 15:07:15 +0000 (17:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 22:21:13 +0000 (15:21 -0700)
commit74b3b4cd80f43b094b5cb78e73bf612383d80749
treefece662e88308182bc1cd1cfc57722ed7f6c9e98
parent33e745a192c272130b02b86d5dea5b577a291ed7
tty/hvc_iucv: Disconnect IUCV connection when lowering DTR

Implement the dtr_rts() hvc console callback to improve control when to
disconnect the IUCV connection.  Previously, the IUCV connection was
disconnected during the notifier_del() callback, i.e., when the last file
descriptor to the hvc terminal device was closed.

Recent changes in login programs caused undesired disconnects during the
login phase.  To prevent these kind of disconnects, implement the dtr_rts
callback to implicitly handle the HUPCL termios control via the hvc_console
driver.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_iucv.c