Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: elan_i2c - reduce the resume time for controller in Whitebox

Similar to controllers found Voxel, Delbin, Magpie and Bobba, the one found
in Whitebox does not need to be reset after issuing power-on command, and
skipping reset saves resume time.

Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210907012924.11391-1-jingle.wu@emc.com.tw
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

jingle.wu and committed by
Dmitry Torokhov
d198b827 146ea9b6

+3 -1
+2 -1
drivers/input/mouse/elan_i2c.h
··· 55 55 #define ETP_FW_PAGE_SIZE_512 512 56 56 #define ETP_FW_SIGNATURE_SIZE 6 57 57 58 - #define ETP_PRODUCT_ID_DELBIN 0x00C2 58 + #define ETP_PRODUCT_ID_WHITEBOX 0x00B8 59 59 #define ETP_PRODUCT_ID_VOXEL 0x00BF 60 + #define ETP_PRODUCT_ID_DELBIN 0x00C2 60 61 #define ETP_PRODUCT_ID_MAGPIE 0x0120 61 62 #define ETP_PRODUCT_ID_BOBBA 0x0121 62 63
+1
drivers/input/mouse/elan_i2c_core.c
··· 105 105 u32 quirks; 106 106 } elan_i2c_quirks[] = { 107 107 { 0x0D, ETP_PRODUCT_ID_DELBIN, ETP_QUIRK_QUICK_WAKEUP }, 108 + { 0x0D, ETP_PRODUCT_ID_WHITEBOX, ETP_QUIRK_QUICK_WAKEUP }, 108 109 { 0x10, ETP_PRODUCT_ID_VOXEL, ETP_QUIRK_QUICK_WAKEUP }, 109 110 { 0x14, ETP_PRODUCT_ID_MAGPIE, ETP_QUIRK_QUICK_WAKEUP }, 110 111 { 0x14, ETP_PRODUCT_ID_BOBBA, ETP_QUIRK_QUICK_WAKEUP },