All of lore.kernel.org
 help / color / mirror / Atom feed
From: 廖崇榮 <kt.liao@emc.com.tw>
To: "'Dmitry Torokhov'" <dmitry.torokhov@gmail.com>
Cc: "'KT Liao'" <ktalex.liao@gmail.com>,
	<linux-kernel@vger.kernel.org>, <linux-input@vger.kernel.org>,
	<phoenix@emc.com.tw>
Subject: RE: [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
Date: Tue, 12 Jul 2016 22:19:07 +0800	[thread overview]
Message-ID: <008a01d1dc48$5a2957f0$0e7c07d0$@emc.com.tw> (raw)
In-Reply-To: <20160711170321.GB26822@dtor-ws>

Hi Dmitry,

-----Original Message-----
From: 'Dmitry Torokhov' [mailto:dmitry.torokhov@gmail.com] 
Sent: Tuesday, July 12, 2016 1:03 AM
To: 廖崇榮
Cc: 'KT Liao'; linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; phoenix@emc.com.tw
Subject: Re: [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

On Mon, Jul 11, 2016 at 08:40:58PM +0800, 廖崇榮 wrote:
> > +
> > +	error = data->ops->get_sm_version(client, &data->ic_type,
> > +					  &data->sm_version);
> > +	if (error)
> > +		return false;
> 
> That means we'd be fetching product ID and IC type twice when initializing the device. Can we come with a way to do it once?
> [KT]:Because the elan_query_device_info() is behind the elan_initialize(). That's why I fetching product ID and IC type in the elan_initialize()
>     I will discuss with FW team and then execute elan_query_device_info() first to get product_id and ic_type. 

We might need to split fetching product ID and IC type form the rest of the device info.
[KT] : ok, I will extract "product ID" and "IC type" to another query-device function. and it won't change original flow too much.

Thanks.

--
Dmitry

WARNING: multiple messages have this Message-ID (diff)
From: 廖崇榮 <kt.liao@emc.com.tw>
To: 'Dmitry Torokhov' <dmitry.torokhov@gmail.com>
Cc: 'KT Liao' <ktalex.liao@gmail.com>,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	phoenix@emc.com.tw
Subject: RE: [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
Date: Tue, 12 Jul 2016 22:19:07 +0800	[thread overview]
Message-ID: <008a01d1dc48$5a2957f0$0e7c07d0$@emc.com.tw> (raw)
In-Reply-To: <20160711170321.GB26822@dtor-ws>

Hi Dmitry,

-----Original Message-----
From: 'Dmitry Torokhov' [mailto:dmitry.torokhov@gmail.com] 
Sent: Tuesday, July 12, 2016 1:03 AM
To: 廖崇榮
Cc: 'KT Liao'; linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; phoenix@emc.com.tw
Subject: Re: [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

On Mon, Jul 11, 2016 at 08:40:58PM +0800, 廖崇榮 wrote:
> > +
> > +	error = data->ops->get_sm_version(client, &data->ic_type,
> > +					  &data->sm_version);
> > +	if (error)
> > +		return false;
> 
> That means we'd be fetching product ID and IC type twice when initializing the device. Can we come with a way to do it once?
> [KT]:Because the elan_query_device_info() is behind the elan_initialize(). That's why I fetching product ID and IC type in the elan_initialize()
>     I will discuss with FW team and then execute elan_query_device_info() first to get product_id and ic_type. 

We might need to split fetching product ID and IC type form the rest of the device info.
[KT] : ok, I will extract "product ID" and "IC type" to another query-device function. and it won't change original flow too much.

Thanks.

--
Dmitry

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2016-07-12 14:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-08 12:12 [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 KT Liao
2016-07-08 12:12 ` KT Liao
2016-07-09  0:24 ` Dmitry Torokhov
2016-07-09  0:24   ` Dmitry Torokhov
2016-07-11 12:40   ` 廖崇榮
2016-07-11 12:40     ` 廖崇榮
2016-07-11 17:03     ` 'Dmitry Torokhov'
2016-07-11 17:03       ` 'Dmitry Torokhov'
2016-07-12 14:19       ` 廖崇榮 [this message]
2016-07-12 14:19         ` 廖崇榮

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='008a01d1dc48$5a2957f0$0e7c07d0$@emc.com.tw' \
    --to=kt.liao@emc.com.tw \
    --cc=dmitry.torokhov@gmail.com \
    --cc=ktalex.liao@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phoenix@emc.com.tw \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.