Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 747125be authored by Girish Mahadevan's avatar Girish Mahadevan
Browse files

serial: msm_serial_hs: Change the wakeup interrupt enable sequence



The wakeup variable keeps track of the 2 edge interrupts needed to detect
wakeup from deep sleep, when the second edge interrupt is detected the
wake byte is injected into the tty buffer.
On some boards due to noisy GPIO pins an interrupt is detected as soon as
the wakeup irq is enabled and before the variable is reset leading to
bogus wakeup bytes being injected into the serial buffer.
To protect against this, make sure the wakeup interrupt is enabled after
all the state variables are reset to protect against spurious wakeups.

Change-Id: I8002a67d8d9cb41709049ff34f35717f3dd0acd0
Acked-by: default avatarYijiang Yuan <yijiangy@qti.qualcomm.com>
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent 6b24dd5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment