projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1593daf
)
serial: clps711x: Fix break control handling
author
Alexander Shiyan
<shc_work@mail.ru>
Sun, 14 Oct 2012 07:05:29 +0000
(11:05 +0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 18:39:47 +0000
(11:39 -0700)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/clps711x.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/clps711x.c
b/drivers/tty/serial/clps711x.c
index
7b0e539
..
73505c1
100644
(file)
--- 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)
unsigned int ubrlcr;
spin_lock_irqsave(&port->lock, flags);
+
ubrlcr = clps_readl(UBRLCR(port));
- if (break_state
== -1
)
+ if (break_state)
ubrlcr |= UBRLCR_BREAK;
else
ubrlcr &= ~UBRLCR_BREAK;
clps_writel(ubrlcr, UBRLCR(port));
+
spin_unlock_irqrestore(&port->lock, flags);
}