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

Commit b8046c15 authored by Patrick Auchter's avatar Patrick Auchter Committed by TARKZiM
Browse files

msm: kgsl: Only wake GPU on multitouch events



Listening for EV_ABS events was too broad and causing the GPU to wake when
no drawing was going to be performed.  Then when there was actual touch
input, the GPU wouldn't be woken again since no drawing was done the
previous time the GPU was woken.

Since other sensors can use EV_ABS input events, we need to update the
event filter so that the GPU is only woken when there is an actual touch
event.  This can be determined when there is an EV_ABS event for
ABS_MT_POSITION_X, ABS_MT_POSITION_Y, or ABS_MT_TRACKING_ID.

Change-Id: I5a7596394fdc528978c44b5b3861dc1eebb5278a
Signed-off-by: default avatarPatrick Auchter <auchter@motorola.com>
Reviewed-on: http://gerrit.mot.com/687410


Tested-by: default avatarJira Key <jirakey@motorola.com>
Reviewed-by: default avatarFred Fettinger <fettinge@motorola.com>
Reviewed-by: default avatarStephen Rossbach <rossbach@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
SLTApproved: Connie Zhao <czhao1@motorola.com>
(cherry picked from commit a28b6af7b6522e2295f43776ffcde0bc2d874ace)

# Conflicts:
#	drivers/gpu/msm/adreno.c
parent a3ad54ed
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