mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
serial: 8250: Set cons_flow on port registration
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>
This commit is contained in:
parent
941c9f84c9
commit
f69ec49224
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user