Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: cpm_uart, use port->flags instead of low_latency

This is the only in-kernel user of tty_port::low_latency. Switch this
last one to test uport->flags directly as tty_port::low_latency is going
away in the next patch.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210105120239.28031-10-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby and committed by
Greg Kroah-Hartman
bb914668 cac8a630

+1 -2
+1 -2
drivers/tty/serial/cpm_uart/cpm_uart_core.c
··· 499 499 pr_debug("CPM uart[%d]:set_termios\n", port->line); 500 500 501 501 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 502 - if (baud < HW_BUF_SPD_THRESHOLD || 503 - (pinfo->port.state && pinfo->port.state->port.low_latency)) 502 + if (baud < HW_BUF_SPD_THRESHOLD || port->flags & UPF_LOW_LATENCY) 504 503 pinfo->rx_fifosize = 1; 505 504 else 506 505 pinfo->rx_fifosize = RX_BUF_SIZE;