Anson Huang 07b5e16e98 tty: serial: imx: add lock for registers save/restore
In noirq suspend/resume stage with no_console_suspend enabled,
imx_uart_console_write() may be called to print out log_buf
message by printk(), so there will be race condition between
imx_uart_console_write() and imx_uart_save/restore_context(),
need to add lock to protect the registers save/restore operations.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-18 16:07:24 +02:00
..
2017-11-13 21:05:31 -08:00
2017-11-15 11:36:08 -08:00
2018-09-18 16:07:23 +02:00
2017-11-21 15:57:07 -08:00
2018-04-30 05:14:55 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00