]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: lock port for stop_rx() in uart_suspend_port()
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 25 May 2023 09:31:53 +0000 (11:37 +0206)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:53 +0000 (16:21 +0200)
commit44470207dbc53b267c867f96a62bdf30142f8cd9
tree72b82f7a76286194656d4189334ff02d6bc4b0d3
parentc494fe1b66632dfa50b7a8e4213f858f2e01dba9
serial: core: lock port for stop_rx() in uart_suspend_port()

[ Upstream commit abcb0cf1f5b2d99b1d117a4dbce334120e358d6d ]

The uarts_ops stop_rx() callback expects that the port->lock is
taken and interrupts are disabled.

Fixes: c9d2325cdb92 ("serial: core: Do stop_rx in suspend path for console if console_suspend is disabled")
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20230525093159.223817-3-john.ogness@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/serial_core.c