]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc78dd4a9b5962cea9759435eb4c27a784a2a2429
tree7a9df5b19f9f9e0558b987d8de7c27143952f2bf
parentb4646b31eff569a45812bf975989d57c25e727a2
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