]> err.no Git - linux-2.6/commit
serial_core: uart_set_ldisc infrastructure
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 3 Jun 2008 14:18:54 +0000 (15:18 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 Jun 2008 15:20:17 +0000 (08:20 -0700)
commit64e9159f5d2c4edf5fa6425031e556f8fddaf7e6
tree77989ed8da4c26be343c1e3e065cdfbb152a44cd
parent4b34fe156455d26ee6ed67b61539f136bf4e439c
serial_core: uart_set_ldisc infrastructure

The tty layer provides a callback that is used when the line discipline
is changed. Some hardware uses this to configure hardware specific
features such as IrDA mode on serial ports. Unfortunately the serial
layer does not provide this feature or pass it down to drivers.

Blackfin used to hack around this by rewriting the tty ops, but those are
now properly shared and const so the hack fails. Instead provide the
proper operations.

This change plus a follow up from the Blackfin guys is needed to avoid
blackfin losing features in this release.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/serial_core.c
include/linux/serial_core.h