From 5f5b4d05fe1db440c7fd69e0dcabfb04b2ea2276 Mon Sep 17 00:00:00 2001 From: Yatish Kumar Singh Date: Fri, 27 Aug 2021 16:02:43 +0530 Subject: [PATCH] serial: msm_geni_serial: Enable SW flow on in runtime suspend Stop_rx is bailing out in the runtime suspend path because of parallel data from SOC and there is no SW FLOW ON from UART, causing SOC unable to send RX data to host. Enabled SW flow on if the stop_rx is bailing out during runtime suspend. Change-Id: I0dd52fafe99466e6177a60a108132f25a5be570b Signed-off-by: Yatish Kumar Singh --- drivers/tty/serial/msm_geni_serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/msm_geni_serial.c b/drivers/tty/serial/msm_geni_serial.c index 2829d7c5377d..2cde44854593 100644 --- a/drivers/tty/serial/msm_geni_serial.c +++ b/drivers/tty/serial/msm_geni_serial.c @@ -3639,6 +3639,8 @@ static int msm_geni_serial_runtime_suspend(struct device *dev) if (ret) { IPC_LOG_MSG(port->ipc_log_pwr, "%s: stop rx failed %d\n", __func__, ret); + /* Flow on from UART */ + msm_geni_serial_allow_rx(port); return -EBUSY; }