RE: [PATCH 1/2] elantech: Properly differentiate between clickpads and normal touchpads

2013-12-09 Thread duson
Hi Benjamin: I am sorry for the late reply. Yes. I can confirm this. Thanks, Duson -Original Message- From: Benjamin Tissoires [mailto:benjamin.tissoi...@gmail.com] Sent: Tuesday, December 10, 2013 2:03 AM To: Hans de Goede Cc: linux-input; Peter Hutterer; Duson Lin; Dmitry Torokhov

RE: [PATCH 1/2] elantech: Properly differentiate between clickpads and normal touchpads

2013-12-10 Thread duson
HI Dmitry and Benjamin: > -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Tuesday, December 10, 2013 2:13 PM > To: Benjamin Tissoires > Cc: Hans de Goede; linux-input; Peter Hutterer; Duson Lin > Subject: Re: [PATCH 1/2]

RE: [PATCH 1/2] elantech: Properly differentiate between clickpads and normal touchpads

2013-12-10 Thread duson
Hi Hans: > -Original Message- > From: linux-input-ow...@vger.kernel.org [mailto:linux-input-ow...@vger.kernel.org] > On Behalf Of Hans de Goede > Sent: Tuesday, December 10, 2013 4:46 PM > To: duson; 'Dmitry Torokhov'; 'Benjamin Tissoires' > Cc:

RE: [PATCH] Add: (1) Detection for newer Elantech touchpads, so that kernel doesn't fall-back to default PS/2 driver. (2) Enable hardware version 4 touchpad right click function.

2013-12-10 Thread duson
Hi Dmitry > -Original Message- > From: linux-input-ow...@vger.kernel.org [mailto:linux-input-ow...@vger.kernel.org] > On Behalf Of Dmitry Torokhov > Sent: Monday, December 09, 2013 2:32 PM > To: Duson Lin > Cc: linux-ker...@vger.kernel.org; linux-input@vger.kernel

RE: input: elantech.c: adding more Fujtisu notebooks to force crc_enabled

2015-01-27 Thread duson
Loop Sam Hi Sam, Please help to take care this. Duson > -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Wednesday, January 28, 2015 7:28 AM > To: Rainer Koenig > Cc: linux-input@vger.kernel.org; jeff.chuang7...@gmail.com; > jam

Re: [PATCH] Input: elan_i2c - enable ELAN0600 acpi panels

2015-04-09 Thread duson
. -- Thanks, ELAN Duson ✉ Email: duson...@emc.com.tw -- > Dmitry Torokhov 於 2015年4月4日 上午5:05 寫道: > > On Tue, Mar 31, 2015 at 05:34:58PM -0400, Benjamin Tissoires wrote: >> ELAN0600 seems to work just fine in mouse

[PATCH 4/4] Input: elan_i2c - Add pressure normalization

2015-04-11 Thread duson
constent pi) and the pressure get from firmware will near 16. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c.h |7 +-- drivers/input/mouse/elan_i2c_core.c | 25 +++-- drivers/input/mouse/elan_i2c_i2c.c | 26 -- drivers

Re: [PATCH 5/5] Input: elan_i2c - Correct the x and y trace number.

2015-04-15 Thread duson
= 147.36. -- Thanks, ELAN Duson ✉ Email: duson...@emc.com.tw -- > Dmitry Torokhov 於 2015年4月16日 上午1:47 寫道: > > On Wed, Apr 15, 2015 at 09:55:43AM +0800, DusonLin wrote: >> The trace number d

[PATCH 6/6] Input: elan_i2c - Add hover detection flag

2015-04-16 Thread duson
When hover event coming, set ABS_MT_DISTANCE as 1, otherwise clear to 0. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse

Re: [PATCH 6/6] Input: elan_i2c - Add hover detection flag

2015-04-20 Thread duson
Hi Dmitry, Is this patch looks good for you? If you have any advice, please let me know. -- Thank you ELAN Duson ✉ Email: duson...@emc.com.tw -- > duson 於 2015年4月17日 上午9:56 寫道: > > When ho

Re: [PATCH 5/5] Input: elan_i2c - Correct the x and y trace number.

2015-04-20 Thread duson
Hi Dmitry, How about the description? Is it looks good for you? Please let me know if you have any concern. -- Thank you, ELAN Duson ✉ Email: duson...@emc.com.tw -- > duson 於 2015年4月16日 上午9:37

Re: [PATCH] input: elan_i2c - Add product IDs FW names

2015-06-05 Thread duson
-> 1.5.8 line 48, #define ELAN_DRIVER_VERSION “1.5.7” -> “1.5.8" -- Thanks, ELAN Duson ✉ Email: duson...@emc.com.tw -- > Charlie Mooney 於 2015年6月6日 上午12:25 寫道: > > Previously t

[PATCH] Input - elan_i2c: support multi ic type and iap format

2015-06-06 Thread duson
In order to support multi ic type for i2c/smbus protocol, add get ic type command and check fw vaild page count and signature address function. Signed-off by: Duson Lin --- drivers/input/mouse/elan_i2c.h |5 ++-- drivers/input/mouse/elan_i2c_core.c | 44

[PATCH] Input: elan_i2c - Add hover event for ST format

2015-06-28 Thread duson
Signed-off by: Duson Lin --- 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 62641f2..ce97e28 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse

[PATCH] Input: elan_i2c - Change the hover event from MT to ST

2015-07-06 Thread duson
We want the hover event like BTN_LEFT, even no contract object, it still can be reported to upper OS system. Signed-off by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b

[PATCH] Input - elantech: Add special check for fw_version 0x470f01 touchpad

2015-07-22 Thread duson
t is no need to check the packet[0] for sanity check when doing elantech_packet_check_v4() function for fw_version = 0x470f01 touchpad. Signed-off by: Duson Lin --- drivers/input/mouse/elantech.c | 25 ++--- drivers/input/mouse/elantech.h |1 + 2 files changed, 23

[PATCH 2/2] Input - elantech: Add special check for fw_version 0x470f01 touchpad

2015-07-22 Thread duson
It is no need to check the packet[0] for sanity check when doing elantech_packet_check_v4() function for fw_version = 0x470f01 touchpad. Signed-off by: Duson Lin --- drivers/input/mouse/elantech.c | 26 +++--- drivers/input/mouse/elantech.h |1 + 2 files changed, 24

[PATCH 3/3] Input - elantech: Add special check for fw_version 0x470f01 touchpad

2015-08-01 Thread duson
It is no need to check the packet[0] for sanity check when doing elantech_packet_check_v4() function for fw_version = 0x470f01 touchpad. Signed-off by: Duson Lin --- drivers/input/mouse/elantech.c | 28 +--- drivers/input/mouse/elantech.h |1 + 2 files changed, 26

[PATCH 4/4] Input - elantech: Add special check for fw_version 0x470f01 touchpad

2015-08-07 Thread duson
It is no need to check the packet[0] for sanity check when doing elantech_packet_check_v4() function for fw_version = 0x470f01 touchpad. Signed-off by: Duson Lin --- drivers/input/mouse/elantech.c | 20 drivers/input/mouse/elantech.h |1 + 2 files changed, 21

[PATCH] Input: elan_i2c - Recovery exception ic type

2015-08-30 Thread duson
--git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 5b5f403..39d9929 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -4,7 +4,7 @@ * Copyright (c) 2013 ELAN Microelectronics Corp. * * Author: 林政維 (Duson Lin

[PATCH] Input: elan_i2c - Use iap_version to get firmware information

2015-09-01 Thread duson
(Duson Lin) - * Version: 1.5.9 + * Version: 1.6.0 * * Based on cyapa driver: * copyright (c) 2011-2012 Cypress Semiconductor, Inc. @@ -40,7 +40,7 @@ #include "elan_i2c.h" #define DRIVER_NAME"elan_i2c" -#define ELAN_DRIVER_VERSION"1.5.9"

[PATCH] Input: elan_i2c - Use iap_version to get firmware information

2015-09-01 Thread duson
When driver get exception ic type (0xFF), maybe occurred from wrong I2C protocol communication, system crash or other unknown situation, instead of ic_type we use iap_version to get firmware information. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c |6 +++--- 1 file

[PATCH] Input: elan_i2c - Use iap_version to get firmware information

2015-09-01 Thread duson
When driver get exception ic type (0xFF), maybe occurred from wrong I2C protocol communication, system crash or other unknown situation, instead of ic_type we use iap_version to get firmware information. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c |8 1 file

[PATCH] Input: elan_i2c - Expand maxmium product_id form 0xFF to 0xFFFF

2015-09-10 Thread duson
In order to support more projects in the feture, we expand the maxmium product_id value form 0xFF to 0x. Signed-off by: Duson Lin --- drivers/input/mouse/elan_i2c.h |2 +- drivers/input/mouse/elan_i2c_core.c |6 +++--- drivers/input/mouse/elan_i2c_i2c.c |4 ++-- drivers

[PATCH] Input: elan_i2c - Add ic type 0x03

2015-09-20 Thread duson
The 0x03 is valid 3000 serial ic type too. Signed-off-by: Duson Lin --- 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 fa94530..16ac595 100644 --- a/drivers/input/mouse

[PATCH] Input: elan_i2c - Add all valid ic type for i2c/smbus

2015-09-22 Thread duson
Signed-of-by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index 16ac595..357670e 100644 --- a/drivers/input/mouse/elan_i2c_core.c

[PATCH] Input: elan_i2c - Compare signature metadata before update fw

2015-01-23 Thread Duson Lin
To match different firmware file format, we replace original firmware file size checking with the signature metadata comparison when update firmware, If failed, the update will be aborted. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c.h |6 +++--- drivers/input/mouse

[PATCH] Input: add i2c driver for elan i2c touchpad

2013-10-23 Thread Duson Lin
From: Duson Lin This driver adds support for elan i2c touchpad found on some laptops. --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 1439 3 files changed, 1450 insertions(+) create

[PATCH] Add: (1) Detection for newer Elantech touchpads, so that kernel doesn't fall-back to default PS/2 driver. (2) Enable hardware version 4 touchpad right click function.

2013-12-08 Thread Duson Lin
Modify: (1) crc_enabled only support for v3 and v4 touchpad, so initialize crc_enabled as false first and check this hardware flag when hw_version as 3 or 4. Signed-off-by: Duson Lin --- drivers/input/mouse/elantech.c | 30 ++ drivers/input/mouse/elantech.h |2

[PATCH] Input: add i2c/smbus driver for elan touchpad

2013-12-16 Thread Duson Lin
This driver adds support for elan i2c/smbus touchpad found on some laptops PC Signed-off-by: Duson Lin --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 908 3 files changed, 919

[PATCH v2] Input: add i2c/smbus driver for elan touchpad

2013-12-17 Thread Duson Lin
This driver adds support for elan i2c/smbus touchpad found on some laptops PC Signed-off-by: Duson Lin --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 890 3 files changed, 901

[PATCH v2] Input: add i2c/smbus driver for elan touchpad

2014-01-06 Thread Duson Lin
This driver adds support for elan i2c/smbus touchpad found on some laptops PC Signed-off-by: Duson Lin --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 890 3 files changed, 901

[PATCH] Input: elan_i2c - Compare signature metadata before update fw

2015-03-06 Thread Duson Lin
To match different firmware file format, we replace original firmware file size checking with the signature metadata comparison when update firmware, If failed, the update will be aborted. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c.h |6 +++--- drivers/input/mouse

[PATCH 2/2] Input: elan_i2c - Return error code when resume fail.

2015-03-07 Thread Duson Lin
The resume function always return success, so stop event can not be triggered when "suspend_stress_test" running. In order to debug more easily, we add some error messages in elan_enable_power and elan_disable_power funtion. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_

[PATCH 3/3] Input: elan_i2c - Remove duplicate repeat code

2015-03-08 Thread Duson Lin
Remove duplicate "repeat--" from function elan_initialize. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index f24078b..4b970e2 10