]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: elan_i2c - reduce the resume time for controller in Whitebox
authorjingle.wu <jingle.wu@emc.com.tw>
Tue, 7 Sep 2021 04:52:05 +0000 (21:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Sep 2021 05:30:34 +0000 (22:30 -0700)
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>
drivers/input/mouse/elan_i2c.h
drivers/input/mouse/elan_i2c_core.c

index dc4a240f44895a391ac872f8e1c79363cb4cbb17..3c84deefa327d8464a716a38726f97a42a5d62aa 100644 (file)
@@ -55,8 +55,9 @@
 #define ETP_FW_PAGE_SIZE_512   512
 #define ETP_FW_SIGNATURE_SIZE  6
 
-#define ETP_PRODUCT_ID_DELBIN  0x00C2
+#define ETP_PRODUCT_ID_WHITEBOX        0x00B8
 #define ETP_PRODUCT_ID_VOXEL   0x00BF
+#define ETP_PRODUCT_ID_DELBIN  0x00C2
 #define ETP_PRODUCT_ID_MAGPIE  0x0120
 #define ETP_PRODUCT_ID_BOBBA   0x0121
 
index dad22c1ea6a0ff3c6763205fe2b8fd46393f25ea..47af62c122672256ec0d882fd22b2d9cf14f4ad0 100644 (file)
@@ -105,6 +105,7 @@ static u32 elan_i2c_lookup_quirks(u16 ic_type, u16 product_id)
                u32 quirks;
        } elan_i2c_quirks[] = {
                { 0x0D, ETP_PRODUCT_ID_DELBIN, ETP_QUIRK_QUICK_WAKEUP },
+               { 0x0D, ETP_PRODUCT_ID_WHITEBOX, ETP_QUIRK_QUICK_WAKEUP },
                { 0x10, ETP_PRODUCT_ID_VOXEL, ETP_QUIRK_QUICK_WAKEUP },
                { 0x14, ETP_PRODUCT_ID_MAGPIE, ETP_QUIRK_QUICK_WAKEUP },
                { 0x14, ETP_PRODUCT_ID_BOBBA, ETP_QUIRK_QUICK_WAKEUP },