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>
Tue, 30 May 2023 10:45:42 +0000 (11:45 +0100)
commitabcb0cf1f5b2d99b1d117a4dbce334120e358d6d
tree01761a8e4650afcc0d57e520ae39d0506b1135b1
parentb1207d86169d16581101f93b2906cefd0e940ff1
serial: core: lock port for stop_rx() in uart_suspend_port()

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>
drivers/tty/serial/serial_core.c