• Alan Cox's avatar
    serial_core: uart_set_ldisc infrastructure · 64e9159f
    Alan Cox authored
    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: default avatarAlan Cox <alan@redhat.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    64e9159f
serial_core.c 62.5 KB