1
0
mirror of https://github.com/sjlongland/adv950.git synced 2025-09-13 10:43:14 +10:00

serial_core: Move low_latency to tty_port

As per d6c53c0e9bd0a83f9f9ddbc9fd80141a54d83896.
This commit is contained in:
Stuart Longland 2017-03-05 13:54:35 +10:00
parent 50c8cae914
commit b2103a86df
Signed by: stuartl
GPG Key ID: 4DFA191410BDE3B7

View File

@ -828,9 +828,8 @@ static int uart_set_info(struct tty_struct *tty, struct uart_state *state,
port->closing_wait = closing_wait;
if (new_serial.xmit_fifo_size)
uport->fifosize = new_serial.xmit_fifo_size;
if (port->tty)
port->tty->low_latency =
(uport->flags & UPF_LOW_LATENCY) ? 1 : 0;
port->low_latency =
(uport->flags & UPF_LOW_LATENCY) ? 1 : 0;
check_and_exit:
retval = 0;
@ -1531,7 +1530,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
*/
tty->driver_data = state;
state->uart_port->state = state;
tty->low_latency = (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0;
port->low_latency = (state->uart_port->flags & UPF_LOW_LATENCY) ? 1 : 0;
tty->alt_speed = 0;
tty_port_tty_set(port, tty);