aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/clps711x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/clps711x.c b/drivers/tty/serial/clps711x.c
index 7b0e539ee9c0..73505c1edc7d 100644
--- a/drivers/tty/serial/clps711x.c
+++ b/drivers/tty/serial/clps711x.c
@@ -218,12 +218,14 @@ static void clps711xuart_break_ctl(struct uart_port *port, int break_state)
218 unsigned int ubrlcr; 218 unsigned int ubrlcr;
219 219
220 spin_lock_irqsave(&port->lock, flags); 220 spin_lock_irqsave(&port->lock, flags);
221
221 ubrlcr = clps_readl(UBRLCR(port)); 222 ubrlcr = clps_readl(UBRLCR(port));
222 if (break_state == -1) 223 if (break_state)
223 ubrlcr |= UBRLCR_BREAK; 224 ubrlcr |= UBRLCR_BREAK;
224 else 225 else
225 ubrlcr &= ~UBRLCR_BREAK; 226 ubrlcr &= ~UBRLCR_BREAK;
226 clps_writel(ubrlcr, UBRLCR(port)); 227 clps_writel(ubrlcr, UBRLCR(port));
228
227 spin_unlock_irqrestore(&port->lock, flags); 229 spin_unlock_irqrestore(&port->lock, flags);
228} 230}
229 231