serial: imx: use locking to stop concurrent access of UCR1
authorJiada Wang <jiada_wang@mentor.com>
Tue, 9 Dec 2014 09:11:23 +0000 (18:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:23:07 +0000 (14:23 -0800)
commit73631813c1ed17437e9de86f82a477fa4bac90c1
tree1adfd7774d7b636ba899d3c013221cd131b9f1fc
parent55d8693acd65b1c14e011cbcbfad2a15626472cd
serial: imx: use locking to stop concurrent access of UCR1

Several places are accessing the UCR1 register without locking.
This probably will cause a race issue when another thread
is accessing the same register.
Add locking to preventing concurrent access of the UCR1 register.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c