Skip to content

Commit d198b82

Browse files
jinglewudtor
authored andcommitted
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 <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 146ea9b commit d198b82

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/input/mouse/elan_i2c.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@
5555
#define ETP_FW_PAGE_SIZE_512 512
5656
#define ETP_FW_SIGNATURE_SIZE 6
5757

58-
#define ETP_PRODUCT_ID_DELBIN 0x00C2
58+
#define ETP_PRODUCT_ID_WHITEBOX 0x00B8
5959
#define ETP_PRODUCT_ID_VOXEL 0x00BF
60+
#define ETP_PRODUCT_ID_DELBIN 0x00C2
6061
#define ETP_PRODUCT_ID_MAGPIE 0x0120
6162
#define ETP_PRODUCT_ID_BOBBA 0x0121
6263

drivers/input/mouse/elan_i2c_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static u32 elan_i2c_lookup_quirks(u16 ic_type, u16 product_id)
105105
u32 quirks;
106106
} elan_i2c_quirks[] = {
107107
{ 0x0D, ETP_PRODUCT_ID_DELBIN, ETP_QUIRK_QUICK_WAKEUP },
108+
{ 0x0D, ETP_PRODUCT_ID_WHITEBOX, ETP_QUIRK_QUICK_WAKEUP },
108109
{ 0x10, ETP_PRODUCT_ID_VOXEL, ETP_QUIRK_QUICK_WAKEUP },
109110
{ 0x14, ETP_PRODUCT_ID_MAGPIE, ETP_QUIRK_QUICK_WAKEUP },
110111
{ 0x14, ETP_PRODUCT_ID_BOBBA, ETP_QUIRK_QUICK_WAKEUP },

0 commit comments

Comments
 (0)