serial: msm_geni_serial: Check for wakeup byte after suspend

As part of commit '2d390a26b7695 ("serial: msm_geni_serial:
Check for wakeup byte after suspend")', wakeup byte is not
being checked as part of suspend resulting in failure.

Enable the check for wakeup byte after suspend, so that
wakeup isr function handles it.

Change-Id: Ibb3276b3e8584b0ef79d5809158f2cbba4e283c1
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
This commit is contained in:
Prasanna S 2023-03-06 21:06:01 +05:30
parent ac5dcd590f
commit 32c6b4f78e

View File

@ -3986,7 +3986,7 @@ static int msm_geni_serial_runtime_suspend(struct device *dev)
/* Check if port is in open state before enabling wakeup_irq */
if (port->wakeup_irq > 0 && port->uport.state->port.tty) {
atomic_set(&port->check_wakeup_byte, 1);
atomic_set(&port->check_wakeup_byte, 0);
enable_irq(port->wakeup_irq);
port->wakeup_enabled = true;
}