tty: Add carrier processing on close to the tty_port core
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Thu, 11 Jun 2009 11:24:17 +0000 (12:24 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Jun 2009 15:50:56 +0000 (08:50 -0700)
commitfcc8ac1825d3d0fb81f73bc1a80ebc863168bb56
tree737f7209430fd319ca257df62c9b1e64587d5a8b
parent65a29f60e121ae5116ac1736b50a237bf2db3225
tty: Add carrier processing on close to the tty_port core

Some drivers implement this internally, others miss it out. Push the
behaviour into the core code as that way everyone will do it consistently.

Update the dtr rts method to raise or lower depending upon flags. Having a
single method in this style fits most of the implementations more cleanly than
two funtions.

We need this in place before we tackle the USB side

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
drivers/char/epca.c
drivers/char/isicom.c
drivers/char/istallion.c
drivers/char/mxser.c
drivers/char/pcmcia/synclink_cs.c
drivers/char/rocket.c
drivers/char/stallion.c
drivers/char/synclink.c
drivers/char/synclink_gt.c
drivers/char/synclinkmp.c
drivers/char/tty_port.c
include/linux/tty.h