[PATCH] Input: elan_i2c - Add many hardware ID for lenovo laptop

2019-03-13 Thread KT Liao
There are many Lenovo laptop which need elan_i2c support. Elan collects the list ands add to add to elan_acpi_id[] Signed-off-by: KT Liao --- drivers/input/mouse/elan_i2c_core.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/input/mouse/elan_i2c_core.c

[PATCH] Input: elan_i2c - Add i2c_reset in sysfs for ELAN touchpad recovery

2019-02-01 Thread KT Liao
(ELAN0600:00) vs. 00015a00 (timer) I can't reproduce the issue in SUSE with the same kernel. And it's a 5 years old laptop, ELAN can't find the module for testing. Instead of IRQ debugging IRQ, I tried another approach. I added i2c_reset in sysfs to avoid IRQ requesting in probe. Signed-

[PATCH] Input: elan_i2c - Add auto recovery handle for absolute mode

2019-01-07 Thread KT Liao
Sometimes touchpad will be reset to mouse mode unexpectedly. And cause invalid report detection. I add a mouse report detection and send mode-switching command again. Signed-off-by: KT Liao --- drivers/input/mouse/elan_i2c_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a

[PATCH] Input: elan_i2c - Add antoher ACPI ID for Lenovo Ideapad 330-15AST

2018-07-16 Thread KT Liao
Add ELAN0622 in ACPI mapping table to support Ideapad 330-15AST ELAN touchpad Signed-off-by: KT Liao Reported-by: Anant Shende --- drivers/input/mouse/elan_i2c_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c

[PATCH] Input: elantech - Fix V4 report decoding for module with middle key

2018-05-28 Thread KT Liao
Some touchpad has middle key and it will be indicated in bit 2 of packet[0]. We need to fix V4 formation's byte mask to prevent error decoding. Signed-off-by: KT Liao --- drivers/input/mouse/elantech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/

[PATCH] Input: elan_i2c - Extend Flash-Write delay for Elan touch pad

2017-09-21 Thread KT Liao
Original 20ms delay is a margin timing after a block writing in FW update flow. Sometimes it will cause fail during FW-updating if I2C timing delay. We offten see this issue in rockchip's I2C host. Extend the delay timing is the safest way to improve it. Signed-off-by: KT Liao --- dr

[PATCH] Input: elantech - Support new touchpad IC and extend elan's touchpad command

2017-08-27 Thread KT Liao
Origianl ic-body field is not sufficient for upcoming IC, Elan ps/2 driver extend the formation to support future IC. If the IC ver is 0xf, the setting of etd->hw_version still keep 4 And add a new command to indicate a real IC body Signed-off-by: KT Liao --- drivers/input/mouse/elantech.c |

[PATCH] Input: elan_i2c - Support two physical button touchapd for elan_i2c

2017-08-18 Thread KT Liao
Extend information accessing to get button setting information and support L/R button-pad for I2C touchpad Signed-off-by: KT Liao --- drivers/input/mouse/elan_i2c.h | 2 +- drivers/input/mouse/elan_i2c_core.c | 9 +++-- drivers/input/mouse/elan_i2c_i2c.c | 13

[PATCH] Input: elan_i2c - Add antoher Lenovo ACPI ID for upcoming Lenovo NB Add 2 ACPI IC ELAN0609, ELAN060B in the ACPI mapping table Signed-off-by: KT Liao

2017-08-11 Thread KT Liao
--- drivers/input/mouse/elan_i2c_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 3b616cb..0d111322 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -1248,6 +12

[PATCH] Input: elantech - support new touchpad IC and extend elan's touchapd command Origianl ic-body field is not sufficient for upcoming IC, Elan ps/2 driver extend the fomation to support future IC

2017-08-02 Thread KT Liao
--- drivers/input/mouse/elantech.c | 28 drivers/input/mouse/elantech.h | 3 +++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 65c9de3..14ab5ba 100644 --- a/drivers/input/mouse/ela

[PATCH] Input: elan_i2c - Add antoher Lenovo ACPI ID for Yoga310 Add ELAN0602 in ACPI mapping table to support Yoga310's ELAN touchpad Signed-off-by: KT Liao

2017-07-27 Thread KT Liao
--- drivers/input/mouse/elan_i2c_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 3b616cb..88fc0f8 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -1247,6 +1247,

[PATCH] Input: elan_i2c - Clean INT stats in FW updating for old Elan touchpad

2017-05-24 Thread KT Liao
Some old touchapd FWs have interrupt issue after FW updating. Use reading 34 bytes before IC reset command to clean INT stauts The modification has been tested in some chromebook system It should not affect general touchpad in Linux system. Signed-off-by: KT Liao --- drivers/input/mouse

[PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal

2017-05-23 Thread KT Liao
Use wait_for_completion_timeout to prevent breaking of FW updating from unexpected signal Signed-off-by: KT Liao --- drivers/input/mouse/elan_i2c_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c_i2c.c b/drivers/input/mouse/elan_i2c_i2c.c

[PATCH] Input: elantech - force a module ignore ABS mode

2016-12-11 Thread KT Liao
One Elan sample which sample version is 0x74 and hw_version is 0x04 has a bug in abs mode, so let it run in default mode Signed-off-by: KT Liao --- drivers/input/mouse/elantech.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse

[PATCH] Input: elantech - Add a special mode for a specific FW The touchapd which sample ver is 0x74 and hw_version is 0x03 have a fw bug which will cause crush sometimes, I add some work-around for i

2016-12-01 Thread KT Liao
--- drivers/input/mouse/elantech.c | 152 +++-- 1 file changed, 131 insertions(+), 21 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index db7d1d6..acfe7f2 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/inpu

[PATCH] Input: elan_i2c - Add new ic and modify some functions for new IC infomation Signed-off-by: KT Liao

2016-11-21 Thread KT Liao
) * Author: KT Liao - * Version: 1.6.2 + * Version: 1.6.3 * * Based on cyapa driver: * copyright (c) 2011-2012 Cypress Semiconductor, Inc. @@ -41,7 +41,7 @@ #include "elan_i2c.h" #define DRIVER_NAME"elan_i2c" -#define ELAN_DRIVER_VERSION"1.6.2"

[PATCH] Input: elan_i2c - Add new ic and modify some functions for new IC infomation Signed-off-by: KT Liao

2016-11-17 Thread KT Liao
@@ -5,7 +5,7 @@ * * Author: 林政維 (Duson Lin) * Author: KT Liao - * Version: 1.6.2 + * Version: 1.6.3 * * Based on cyapa driver: * copyright (c) 2011-2012 Cypress Semiconductor, Inc. @@ -41,7 +41,7 @@ #include "elan_i2c.h" #define DRIVER_NAME"elan_i2c" -#defi

[PATCH] Input: /input/mouse/elan_i2c_core.c

2016-07-13 Thread KT Liao
Fix some Asus touchapod which casue TP no funciton sometimes, the patch detect some specific touchpad and run a special initialize Signed-off-by: KT Liao --- drivers/input/mouse/elan_i2c_core.c | 93 - 1 file changed, 71 insertions(+), 22 deletions(-) diff

[PATCH] Input: /input/mouse/elan_i2c_core.c Fix some Asus touchapod which casue TP no funciton sometimes, the patch detect some specific touchpad and run a special initialize

2016-07-08 Thread KT Liao
Signed-off-by: KT Liao --- drivers/input/mouse/elan_i2c_core.c | 81 + 1 file changed, 65 insertions(+), 16 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 2f58985..1c200fb 100644 --- a/drivers/input

[PATCH] Input: /input/input-mt.c Emit BTN_TOO_FINGER in function input_mt_report_pointer_emulation if touchpad meets hover condition Signed-off-by: KT Liao

2016-05-28 Thread KT Liao
--- drivers/input/input-mt.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index 54fce56..b89aaa7 100644 --- a/drivers/input/input-mt.c +++ b/drivers/input/input-mt.c @@ -218,8 +218,17 @@ void input_mt_report_poi