diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/serial/serial_core.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index fa7f442424cf..be9359fdf5c7 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c | |||
@@ -641,11 +641,11 @@ static void uart_throttle(struct tty_struct *tty) | |||
641 | mask &= ~port->status; | 641 | mask &= ~port->status; |
642 | } | 642 | } |
643 | 643 | ||
644 | if (mask & UPSTAT_AUTOXOFF) | ||
645 | uart_send_xchar(tty, STOP_CHAR(tty)); | ||
646 | |||
647 | if (mask & UPSTAT_AUTORTS) | 644 | if (mask & UPSTAT_AUTORTS) |
648 | uart_clear_mctrl(port, TIOCM_RTS); | 645 | uart_clear_mctrl(port, TIOCM_RTS); |
646 | |||
647 | if (mask & UPSTAT_AUTOXOFF) | ||
648 | uart_send_xchar(tty, STOP_CHAR(tty)); | ||
649 | } | 649 | } |
650 | 650 | ||
651 | static void uart_unthrottle(struct tty_struct *tty) | 651 | static void uart_unthrottle(struct tty_struct *tty) |
@@ -664,11 +664,11 @@ static void uart_unthrottle(struct tty_struct *tty) | |||
664 | mask &= ~port->status; | 664 | mask &= ~port->status; |
665 | } | 665 | } |
666 | 666 | ||
667 | if (mask & UPSTAT_AUTOXOFF) | ||
668 | uart_send_xchar(tty, START_CHAR(tty)); | ||
669 | |||
670 | if (mask & UPSTAT_AUTORTS) | 667 | if (mask & UPSTAT_AUTORTS) |
671 | uart_set_mctrl(port, TIOCM_RTS); | 668 | uart_set_mctrl(port, TIOCM_RTS); |
669 | |||
670 | if (mask & UPSTAT_AUTOXOFF) | ||
671 | uart_send_xchar(tty, START_CHAR(tty)); | ||
672 | } | 672 | } |
673 | 673 | ||
674 | static void uart_get_info(struct tty_port *port, struct serial_struct *retinfo) | 674 | static void uart_get_info(struct tty_port *port, struct serial_struct *retinfo) |