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

Skip to content
Commit 99b10d59 authored by Oliver Wang's avatar Oliver Wang Committed by Gerrit - the friendly Code Review server
Browse files

input: sensors: fix ap3426 may prevent SoC from sleep



AP3426 may prevent SoC from sleep under the following scenario during
AP3426 workqueue handler:
1. Wake lock cleared after processing sensors interrupt.
2. Proximity sensor interrupt triggered while handling workqueue.
3. Wake lock is hold again.
4. Interrupt flag is cleared by workqueue handler.
5. No one will clear the wake lock again.
This patch handles the above scenario by clear wake lock anyhow after
sensor events are all handled.

Change-Id: Iedbc06bad49c8b6eca5ad54ee0cb97b3add36cf4
Signed-off-by: default avatarOliver Wang <mengmeng@codeaurora.org>
parent 12d8fb96
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