提交 ec335526 编写于 作者: A Alexander Shiyan 提交者: Greg Kroah-Hartman

serial: clps711x: Fix break control handling

Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1593daf9
...@@ -218,12 +218,14 @@ static void clps711xuart_break_ctl(struct uart_port *port, int break_state) ...@@ -218,12 +218,14 @@ static void clps711xuart_break_ctl(struct uart_port *port, int break_state)
unsigned int ubrlcr; unsigned int ubrlcr;
spin_lock_irqsave(&port->lock, flags); spin_lock_irqsave(&port->lock, flags);
ubrlcr = clps_readl(UBRLCR(port)); ubrlcr = clps_readl(UBRLCR(port));
if (break_state == -1) if (break_state)
ubrlcr |= UBRLCR_BREAK; ubrlcr |= UBRLCR_BREAK;
else else
ubrlcr &= ~UBRLCR_BREAK; ubrlcr &= ~UBRLCR_BREAK;
clps_writel(ubrlcr, UBRLCR(port)); clps_writel(ubrlcr, UBRLCR(port));
spin_unlock_irqrestore(&port->lock, flags); spin_unlock_irqrestore(&port->lock, flags);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册