serial: core: Do stop_rx in suspend path for console if console_suspend is disabled
authorVijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Mon, 16 May 2022 09:20:10 +0000 (14:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:31:52 +0000 (18:31 +0200)
commitc9d2325cdb92fd4a6362ea792d93571195741675
tree5876f1fc432170d48753b20a13a9c98849414a17
parentc2194bc999d41eff69301ee723b0c2979b6eb7bd
serial: core: Do stop_rx in suspend path for console if console_suspend is disabled

For the case of console_suspend disabled, if back to back suspend/resume
test is executed, at the end of test, sometimes console would appear to
be frozen not responding to input. This would happen because, during
resume, rx transactions can come in before system is ready, malfunction
of rx happens in turn resulting in console appearing to be stuck.

Do a stop_rx in suspend sequence to prevent this.

Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Link: https://lore.kernel.org/r/1652692810-31148-1-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c