lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit b4749b97 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman

serial: core: Perform RTS signalling before soft flow ctrl

When throttling, time is of the essence; try RTS signalling before
soft flow control, which will take longer.
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 968af298
...@@ -641,11 +641,11 @@ static void uart_throttle(struct tty_struct *tty) ...@@ -641,11 +641,11 @@ static void uart_throttle(struct tty_struct *tty)
mask &= ~port->status; mask &= ~port->status;
} }
if (mask & UPSTAT_AUTOXOFF)
uart_send_xchar(tty, STOP_CHAR(tty));
if (mask & UPSTAT_AUTORTS) if (mask & UPSTAT_AUTORTS)
uart_clear_mctrl(port, TIOCM_RTS); uart_clear_mctrl(port, TIOCM_RTS);
if (mask & UPSTAT_AUTOXOFF)
uart_send_xchar(tty, STOP_CHAR(tty));
} }
static void uart_unthrottle(struct tty_struct *tty) static void uart_unthrottle(struct tty_struct *tty)
...@@ -664,11 +664,11 @@ static void uart_unthrottle(struct tty_struct *tty) ...@@ -664,11 +664,11 @@ static void uart_unthrottle(struct tty_struct *tty)
mask &= ~port->status; mask &= ~port->status;
} }
if (mask & UPSTAT_AUTOXOFF)
uart_send_xchar(tty, START_CHAR(tty));
if (mask & UPSTAT_AUTORTS) if (mask & UPSTAT_AUTORTS)
uart_set_mctrl(port, TIOCM_RTS); uart_set_mctrl(port, TIOCM_RTS);
if (mask & UPSTAT_AUTOXOFF)
uart_send_xchar(tty, START_CHAR(tty));
} }
static void uart_get_info(struct tty_port *port, struct serial_struct *retinfo) static void uart_get_info(struct tty_port *port, struct serial_struct *retinfo)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment