RE: [PATCH] Input: elan_i2c - Reduce the resume time for new dev ices

2021-03-09 Thread jingle.wu
Hi Dmitry: Was this the only issue with the updated patch? Did it work for you otherwise? -> Yes, the updated patch can work successfully after fix this issue. THANKS JINGLE -Original Message- From: 'Dmitry Torokhov' [mailto:dmitry.torok...@gmail.com] Sent: Tuesday, March 09, 2021 9:38

Re: [PATCH] Input: elan_i2c - Reduce the resume time for new dev ices

2021-03-01 Thread jingle.wu
new devices Hi Jingle, On Fri, Feb 26, 2021 at 03:35:37PM +0800, jingle.wu wrote: > @@ -273,10 +318,12 @@ static int __elan_initialize(struct elan_tp_data *data) > bool woken_up = false; > int error; > > - error = data->ops->initialize(client); > - i

[PATCH] Input: elan_i2c - Reduce the resume time for new devices

2021-02-25 Thread jingle.wu
Remove elan_initilize() function at resume state, for Voxel, Delbin, Magple, Bobba and new devices. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c.h | 5 +++ drivers/input/mouse/elan_i2c_core.c | 57 +++-- 2 files changed, 58 insertions(+), 4 deletions(-)

[PATCH 2/2] Input: elantech - Some module tp of tracpoint report has a smbus protocol error.

2020-12-10 Thread jingle.wu
1. Add the conditional expression to distinguish different patterns regarding 0, 1, 2. 2. Add the function to get or set more bytes from register 3. Get and correct the device informations including ic_type, module id from different pattern. 4. Add the function to change the report id 0x5F of tra

[PATCH 1/2] Input: elan_i2c - Add new trackpoint report type 0x5F.

2020-12-10 Thread jingle.wu
The 0x5F is new trackpoint report type of some module. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c.h | 6 ++ drivers/input/mouse/elan_i2c_core.c | 5 + drivers/input/mouse/elan_i2c_smbus.c | 8 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/

[PATCH 2/2] Input: elantech - Some module tp of tracpoint report has a smbus protocol error.

2020-12-07 Thread jingle.wu
1. Add the conditional expression to distinguish different patterns regarding 0, 1, 2. 2. Add the function to get or set more bytes from register 3. Get and correct the device informations including ic_type, module id from different pattern. 4. Add the function to change the report id 0x5F of tra

[PATCH 1/2] Input: elan_i2c - Add new trackpoint report type 0x5F.

2020-12-07 Thread jingle.wu
The 0x5F is new trackpoint report type of some module. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c_core.c | 2 ++ drivers/input/mouse/elan_i2c_smbus.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/

[PATCH 2/2] Input: elantech - Some module tp of tracpoint report has a smbus protocol error.

2020-12-07 Thread jingle.wu
1. Add the conditional expression to distinguish different patterns regarding 0, 1, 2. 2. Add the function to get or set more bytes from register 3. Get and correct the device informations including ic_type, module id from different pattern. 4. Add the function to change the report id 0x5F of tra

[PATCH 1/2] Input: elan_i2c - Add new trackpoint report type 0x5F.

2020-12-07 Thread jingle.wu
The 0x5F is new trackpoint report type of some module. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c_core.c | 2 ++ drivers/input/mouse/elan_i2c_smbus.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/

[PATCH] Input: elan_i2c - Modify the correct input of the iap page type command.

2020-11-11 Thread jingle.wu
The iap page type command of the parameter is page_size. Signed-off-by: Jingle Wu --- drivers/input/mouse/elan_i2c.h | 2 +- drivers/input/mouse/elan_i2c_core.c | 3 ++- drivers/input/mouse/elan_i2c_i2c.c | 10 +- drivers/input/mouse/elan_i2c_smbus.c | 2 +- 4 files changed,

[PATCH] Input: elan_i2c - Modify the correct input of the iap page type command.

2020-11-03 Thread jingle.wu
The iap page type command of the parameter is page_size. --- drivers/input/mouse/elan_i2c.h | 2 +- drivers/input/mouse/elan_i2c_core.c | 3 ++- drivers/input/mouse/elan_i2c_i2c.c | 10 +- drivers/input/mouse/elan_i2c_smbus.c | 2 +- 4 files changed, 9 insertions(+), 8 deletion

[PATCH] Input: trackpoint - Add Suspend mode for Elan TrackPoint

2020-09-03 Thread jingle.wu
From: "jingle.wu" Add suspend command for elan trackpoint --- drivers/input/mouse/trackpoint.c | 16 drivers/input/mouse/trackpoint.h | 1 + 2 files changed, 17 insertions(+) diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c index 3e

Re: [PATCH 2/2] Input: elan_i2c - Modify the IAP related functio n for page sizes 128, 512 bytes.

2020-07-15 Thread jingle.wu
HI Dmitry: Just to confirm, the older devices (I assume that pattern 0 means older) have version command that is numerically higher than the one for the newer (pattern >= 1) devices? >> Yes, Pattern 1, 2 are newer devices. > @@ -324,7 +342,14 @@ static int elan_i2c_get_sm_version(struct i2c_cl

[PATCH] Input: elantech - Remove read/write registers in attr.

2020-05-25 Thread Jingle.Wu
New Elan IC would not be accessed with the specific regiters. Signed-off-by: Jingle Wu --- drivers/input/mouse/elantech.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 2d8434b7b623..fa1aa5f441f5 1006

[PATCH] Input: elantench - Remove read registers in attr Signed-off-by: Jingle Wu

2020-05-25 Thread Jingle.Wu
--- drivers/input/mouse/elantech.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 2d8434b7b623..5bdf2b19118e 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1280,