Input: elan_i2c - reduce the resume time for new devices
authorJingle Wu <jingle.wu@emc.com.tw>
Mon, 8 Mar 2021 02:23:25 +0000 (18:23 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 10 Mar 2021 05:39:55 +0000 (21:39 -0800)
commitea16ef967ec88bd67466d564d461c3fdf7f85bd9
tree45ae4cb81516d246a19e3fedcbaa97d220f7215d
parentad117c558e838f9fa93af265d8f9dd54e87e15b1
Input: elan_i2c - reduce the resume time for new devices

Newer controllers, such as Voxel, Delbin, Magple, Bobba and others, do not
need to be reset after issuing power-on command, and skipping reset saves
at least 100ms from resume time.

Note that if first attempt of re-initializing device fails we will not be
skipping reset on the subsequent ones.

Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw>
Link: https://lore.kernel.org/r/20210226073537.4926-1-jingle.wu@emc.com.tw
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c.h
drivers/input/mouse/elan_i2c_core.c