tty: serial: samsung: add spin_lock for interrupt and console_write
authorJaewon Kim <jaewon02.kim@samsung.com>
Thu, 7 Apr 2022 07:16:19 +0000 (16:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 06:42:46 +0000 (08:42 +0200)
commite73b5c7f3d34c159447de0d24110f1df6d1b6615
tree7a9df5b19f9f9e0558b987d8de7c27143952f2bf
parentee157a79e7c82b01ae4c25de0ac75899801f322c
tty: serial: samsung: add spin_lock for interrupt and console_write

The console_write and IRQ handler can run concurrently.
Problems may occurs console_write is continuously executed while
the IRQ handler is running.

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
Link: https://lore.kernel.org/r/20220407071619.102249-2-jaewon02.kim@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c