Input: elan_i2c - properly wake up touchpad on ASUS laptops
commit2de4fcc64685def3e586856a2dc636df44532395
authorKT Liao <kt.liao@emc.com.tw>
Wed, 13 Jul 2016 18:12:12 +0000 (13 11:12 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Aug 2016 06:40:40 +0000 (2 23:40 -0700)
tree84bc00f8e99fb1093a96a31eee969fe7e56241d2
parent3197704cae5e00d9c78563d2fa4647b576a49fef
Input: elan_i2c - properly wake up touchpad on ASUS laptops

Some ASUS laptops were shipped with touchpads that require to be woken up
first, before trying to switch them into absolute reporting mode, otherwise
touchpad would fail to work while flooding the logs with:

elan_i2c i2c-ELAN1000:00: invalid report id data (1)

Among affected devices are Asus E202SA, N552VW, X456UF, UX305CA, and
others. We detect such devices by checking the IC type and product ID
numbers and adjusting order of operations accordingly.

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Reported-by: Chris Chiu <chiu@endlessm.com>
Reported-by: Vlad Glagolev <stealth@vaygr.net>
Tested-by: Vlad Glagolev <stealth@vaygr.net>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c