]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
serial: 8250: Set cons_flow on port registration
authorJohn Ogness <john.ogness@linutronix.de>
Mon, 11 May 2026 15:27:00 +0000 (17:33 +0206)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2026 09:45:41 +0000 (11:45 +0200)
Since console flow control policy is no longer part of uart_port.flags,
explicitly set the policy for the port.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Link: https://patch.msgid.link/20260511152706.151498-2-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c

index e136cec0c0be75ffa5be5e3ecb420db8fa84dcc8..5ea9a8827b043f89cc9a461b9f6b6e3d4c282814 100644 (file)
@@ -746,6 +746,8 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
        uart->lsr_save_mask     = up->lsr_save_mask;
        uart->dma               = up->dma;
 
+       uart_set_cons_flow_enabled(&uart->port, uart_cons_flow_enabled(&up->port));
+
        /* Take tx_loadsz from fifosize if it wasn't set separately */
        if (uart->port.fifosize && !uart->tx_loadsz)
                uart->tx_loadsz = uart->port.fifosize;