Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1593945
| From | 廖崇榮 <kt.liao@emc.com.tw> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw |
| Date | 2017-03-07 08:50 +0100 |
| Message-ID | <tii2B-4ft-5@gated-at.bofh.it> (permalink) |
| References | <thtW9-1wL-3@gated-at.bofh.it> <ti6Xw-4vE-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Dmitry
-----Original Message-----
From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
Sent: Tuesday, March 07, 2017 3:55 AM
To: KT Liao
Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; Matjaz
Hegedic
Subject: Re: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special
touchpad fw
On Sun, Mar 05, 2017 at 03:13:02AM +0100, Matjaz Hegedic wrote:
> EeeBook X205TA is yet another ASUS device with a special touchpad
> firmware that needs to be accounted for during initialization, or else
> the touchpad will go into an invalid state upon suspend/resume.
> Adding the appropriate ic_type and product_id check fixes the problem.
KT, does this look reasonable? Are there more ASUS models that need such
handling?
[KT] : I just discuss it with FW team.
We can't confirm it right now because it's an old product. And the solution
focus on power-on issue, not suspend/resume.
I will let you know once we figure it out.
Our FW has modified, the issue should not happen on new models.
Thanks KT
>
> Signed-off-by: Matjaz Hegedic <matjaz.hegedic@gmail.com>
> ---
> drivers/input/mouse/elan_i2c_core.c | 22 ++++++++++++----------
> 1 file changed, 12 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/input/mouse/elan_i2c_core.c
> b/drivers/input/mouse/elan_i2c_core.c
> index 2c7d287..dde3ad7 100644
> --- a/drivers/input/mouse/elan_i2c_core.c
> +++ b/drivers/input/mouse/elan_i2c_core.c
> @@ -218,17 +218,19 @@ static int elan_query_product(struct
> elan_tp_data *data)
>
> static int elan_check_ASUS_special_fw(struct elan_tp_data *data) {
> - if (data->ic_type != 0x0E)
> - return false;
> -
> - switch (data->product_id) {
> - case 0x05 ... 0x07:
> - case 0x09:
> - case 0x13:
> - return true;
> - default:
> - return false;
> + if (data->ic_type == 0x0E) {
> + switch (data->product_id) {
> + case 0x05 ... 0x07:
> + case 0x09:
> + case 0x13:
> + return true;
> + }
> }
> + /* ASUS EeeBook X205TA */
> + else if (data->ic_type == 0x8 && data->product_id == 0x26)
> + return true;
> +
> + return false;
> }
>
> static int __elan_initialize(struct elan_tp_data *data)
> --
> 2.7.4
>
Thanks.
--
Dmitry
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw Matjaz Hegedic <matjaz.hegedic@gmail.com> - 2017-03-05 03:20 +0100
Re: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-06 21:00 +0100
RE: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw 廖崇榮 <kt.liao@emc.com.tw> - 2017-03-07 08:50 +0100
Re: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw Matjaž Hegedič <matjaz.hegedic@gmail.com> - 2017-03-07 12:00 +0100
RE: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw 廖崇榮 <kt.liao@emc.com.tw> - 2017-03-08 07:40 +0100
Re: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw 'Dmitry Torokhov' <dmitry.torokhov@gmail.com> - 2017-03-10 23:40 +0100
csiph-web