aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/bfin_5xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index 965532157c65..19cac9f610fd 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -849,6 +849,8 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios,
849 if (termios->c_cflag & CMSPAR) 849 if (termios->c_cflag & CMSPAR)
850 lcr |= STP; 850 lcr |= STP;
851 851
852 spin_lock_irqsave(&uart->port.lock, flags);
853
852 port->read_status_mask = OE; 854 port->read_status_mask = OE;
853 if (termios->c_iflag & INPCK) 855 if (termios->c_iflag & INPCK)
854 port->read_status_mask |= (FE | PE); 856 port->read_status_mask |= (FE | PE);
@@ -878,8 +880,6 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios,
878 if (termios->c_line != N_IRDA) 880 if (termios->c_line != N_IRDA)
879 quot -= ANOMALY_05000230; 881 quot -= ANOMALY_05000230;
880 882
881 spin_lock_irqsave(&uart->port.lock, flags);
882
883 UART_SET_ANOMALY_THRESHOLD(uart, USEC_PER_SEC / baud * 15); 883 UART_SET_ANOMALY_THRESHOLD(uart, USEC_PER_SEC / baud * 15);
884 884
885 /* Disable UART */ 885 /* Disable UART */