SERIAL: omap: configure xon/xoff before setting modem control lines
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 5 Oct 2012 21:26:06 +0000 (22:26 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 4 Nov 2012 12:14:22 +0000 (12:14 +0000)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/tty/serial/omap-serial.c

index 17babde8febfa73f72f31659163eff79321921ba..9f54cef56765b4631b86491f528c77432cf238bc 100644 (file)
@@ -983,11 +983,12 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
                serial_out(up, UART_LCR, cval);
        }
 
-       serial_omap_set_mctrl(&up->port, up->port.mctrl);
        /* Software Flow Control Configuration */
        if (up->port.flags & UPF_SOFT_FLOW)
                serial_omap_configure_xonxoff(up, termios);
 
+       serial_omap_set_mctrl(&up->port, up->port.mctrl);
+
        spin_unlock_irqrestore(&up->port.lock, flags);
        pm_runtime_mark_last_busy(up->dev);
        pm_runtime_put_autosuspend(up->dev);