diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-05 17:26:06 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-11-04 07:14:22 -0500 |
commit | 820344fe3de78e9fdc7691cd6076703683f5a6f4 (patch) | |
tree | 726284d4fe747d3085f5d36d9db26554967916a1 /drivers/tty/serial | |
parent | fd9980c761d4ea15a51ce2aaf5dd9dddc299519e (diff) |
SERIAL: omap: configure xon/xoff before setting modem control lines
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 17babde8febf..9f54cef56765 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c | |||
@@ -983,11 +983,12 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios, | |||
983 | serial_out(up, UART_LCR, cval); | 983 | serial_out(up, UART_LCR, cval); |
984 | } | 984 | } |
985 | 985 | ||
986 | serial_omap_set_mctrl(&up->port, up->port.mctrl); | ||
987 | /* Software Flow Control Configuration */ | 986 | /* Software Flow Control Configuration */ |
988 | if (up->port.flags & UPF_SOFT_FLOW) | 987 | if (up->port.flags & UPF_SOFT_FLOW) |
989 | serial_omap_configure_xonxoff(up, termios); | 988 | serial_omap_configure_xonxoff(up, termios); |
990 | 989 | ||
990 | serial_omap_set_mctrl(&up->port, up->port.mctrl); | ||
991 | |||
991 | spin_unlock_irqrestore(&up->port.lock, flags); | 992 | spin_unlock_irqrestore(&up->port.lock, flags); |
992 | pm_runtime_mark_last_busy(up->dev); | 993 | pm_runtime_mark_last_busy(up->dev); |
993 | pm_runtime_put_autosuspend(up->dev); | 994 | pm_runtime_put_autosuspend(up->dev); |