serial: core: lock port for start_rx() in uart_resume_port()
authorJohn Ogness <john.ogness@linutronix.de>
Thu, 25 May 2023 09:31:55 +0000 (11:37 +0206)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:53 +0000 (16:21 +0200)
commit3a1ab191e00f7ff6170db4c0fd1eda251dd09ef8
tree20461e1a12429cf4faf8d7b9477bc1fc153a0af7
parent65a7cfc009b388a96fff95e3aabecfbd589649bf
serial: core: lock port for start_rx() in uart_resume_port()

[ Upstream commit 51e45fba14bf08b66bca764a083c7f2e2ff62f01 ]

The only user of the start_rx() callback (qcom_geni) directly calls
its own stop_rx() callback. Since stop_rx() requires that the
port->lock is taken and interrupts are disabled, the start_rx()
callback has the same requirement.

Fixes: cfab87c2c271 ("serial: core: Introduce callback for start_rx and do stop_rx in suspend only if this callback implementation is present.")
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20230525093159.223817-5-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