|
@@ -1165,6 +1165,15 @@ out:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
+static void uart_set_ldisc(struct tty_struct *tty, int ldisc)
|
|
|
+{
|
|
|
+ struct uart_state *state = tty->driver_data;
|
|
|
+ struct uart_port *port = state->port;
|
|
|
+
|
|
|
+ if (port->ops->set_ldisc)
|
|
|
+ port->ops->set_ldisc(port);
|
|
|
+}
|
|
|
+
|
|
|
static void uart_set_termios(struct tty_struct *tty,
|
|
|
struct ktermios *old_termios)
|
|
|
{
|
|
@@ -2288,6 +2297,7 @@ static const struct tty_operations uart_ops = {
|
|
|
.unthrottle = uart_unthrottle,
|
|
|
.send_xchar = uart_send_xchar,
|
|
|
.set_termios = uart_set_termios,
|
|
|
+ .set_ldisc = uart_set_ldisc,
|
|
|
.stop = uart_stop,
|
|
|
.start = uart_start,
|
|
|
.hangup = uart_hangup,
|