diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-01-05 13:02:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-07 16:17:31 +0100 |
commit | bb9146688c0d48ca9f186fc7cd1d0ede6d8ff6c4 (patch) | |
tree | 93a6418549b1cb9ea686bb8d83c1445b7f1f1c20 /drivers/tty/serial/cpm_uart | |
parent | cac8a63063e33606c4b8419ef34ef7644d7c2fc4 (diff) | |
download | linux-stable-bb9146688c0d48ca9f186fc7cd1d0ede6d8ff6c4.tar.gz linux-stable-bb9146688c0d48ca9f186fc7cd1d0ede6d8ff6c4.tar.bz2 linux-stable-bb9146688c0d48ca9f186fc7cd1d0ede6d8ff6c4.zip |
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>
Diffstat (limited to 'drivers/tty/serial/cpm_uart')
-rw-r--r-- | drivers/tty/serial/cpm_uart/cpm_uart_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/cpm_uart/cpm_uart_core.c b/drivers/tty/serial/cpm_uart/cpm_uart_core.c index 3b899cc7e362..58aaa533203b 100644 --- a/drivers/tty/serial/cpm_uart/cpm_uart_core.c +++ b/drivers/tty/serial/cpm_uart/cpm_uart_core.c @@ -499,8 +499,7 @@ static void cpm_uart_set_termios(struct uart_port *port, pr_debug("CPM uart[%d]:set_termios\n", port->line); baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); - if (baud < HW_BUF_SPD_THRESHOLD || - (pinfo->port.state && pinfo->port.state->port.low_latency)) + if (baud < HW_BUF_SPD_THRESHOLD || port->flags & UPF_LOW_LATENCY) pinfo->rx_fifosize = 1; else pinfo->rx_fifosize = RX_BUF_SIZE; |