serial: fsl_lpuart: split sysrq handling
authorMichael Walle <michael@walle.cc>
Wed, 12 May 2021 14:12:50 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:08:26 +0000 (16:08 +0200)
commit5697df7322fe0a95e56393f63ca8e0f256be92f9
treeb5f9e310048fbf2bb8992e746e0c7dd48ce91d70
parent0d84f62220eda0eb167b01433f5ce8ebf51654a8
serial: fsl_lpuart: split sysrq handling

Instead of uart_handle_sysrq_char() use uart_prepare_sysrq_char() and
uart_unlock_and_check_sysrq(). This will call handle_sysrq() without
holding the port lock, which in turn let us drop the spin_trylock hack.

Suggested-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20210512141255.18277-5-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c