commit | 53794183225f25830ab40e1c83ae885f11501784 | [log] [tgz] |
---|---|---|
author | Jiada Wang <jiada_wang@mentor.com> | Mon Apr 13 18:31:43 2015 +0900 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 06 22:26:56 2015 +0200 |
tree | 206a263e8822297563deed33fa956cdbe084f6f6 | |
parent | 1e84d22322ceed4767db1e5342c830dd60c8210f [diff] |
serial: imx: protect Soft Reset of port with lock Previously Soft Reset (clear of SRST bit in UCR2 register) of UART in startup is not protected by lock, which may have race with console_write, as console_write may occur at anytime even when UART port is shutdown. To avoid this race, protect Soft reset of UART port with spin_lock. Signed-off-by: Jiada Wang <jiada_wang@mentor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>