All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels
@ 2015-08-22  6:58 Michele Curti
  2015-08-22  7:28   ` DusonLin
  0 siblings, 1 reply; 4+ messages in thread
From: Michele Curti @ 2015-08-22  6:58 UTC (permalink / raw)
  To: jikos, dmitry.torokhov, dusonlin
  Cc: bleung, k.kozlowski, charliemooney, benjamin.tissoires,
	linux-input, linux-kernel, Michele Curti

Enable ELAN0100 touchpad driver, found on a Asus X205TA laptop, to
gain 2,3 fingers tap and 2 fingers scroll.

Signed-off-by: Michele Curti <michele.curti@gmail.com>
---
 drivers/hid/hid-core.c              | 1 +
 drivers/input/mouse/elan_i2c_core.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 22afab9..70a11ac 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -2294,6 +2294,7 @@ static const struct hid_device_id hid_ignore_list[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x0004) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x000a) },
 	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) },
+	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) },
diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
index 67388f4..3f1eef0 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -98,6 +98,7 @@ static int elan_get_fwinfo(u8 ic_type, u16 *vaildpage_count,
 			   u16 *signature_address)
 {
 	switch(ic_type) {
+	case 0x08:
 	case 0x09:
 		*vaildpage_count = 768;
 		break;
@@ -1165,6 +1166,7 @@ MODULE_DEVICE_TABLE(i2c, elan_id);
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id elan_acpi_id[] = {
 	{ "ELAN0000", 0 },
+	{ "ELAN0100", 0 },
 	{ "ELAN0600", 0 },
 	{ }
 };
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels
  2015-08-22  6:58 [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels Michele Curti
@ 2015-08-22  7:28   ` DusonLin
  0 siblings, 0 replies; 4+ messages in thread
From: DusonLin @ 2015-08-22  7:28 UTC (permalink / raw)
  To: 'Michele Curti', jikos, dmitry.torokhov
  Cc: bleung, k.kozlowski, charliemooney, benjamin.tissoires,
	linux-input, linux-kernel

Hi Michele,

The vaildpage_count for type 0x08 should be 512, not 768.

Thanks
Duson

-----Original Message-----
From: Michele Curti [mailto:michele.curti@gmail.com] 
Sent: Saturday, August 22, 2015 2:59 PM
To: jikos@kernel.org; dmitry.torokhov@gmail.com; dusonlin@emc.com.tw
Cc: bleung@chromium.org; k.kozlowski@samsung.com;
charliemooney@chromium.org; benjamin.tissoires@redhat.com;
linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; Michele Curti
Subject: [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels

Enable ELAN0100 touchpad driver, found on a Asus X205TA laptop, to gain 2,3
fingers tap and 2 fingers scroll.

Signed-off-by: Michele Curti <michele.curti@gmail.com>
---
 drivers/hid/hid-core.c              | 1 +
 drivers/input/mouse/elan_i2c_core.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index
22afab9..70a11ac 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -2294,6 +2294,7 @@ static const struct hid_device_id hid_ignore_list[] =
{
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x0004) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x000a) },
 	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) },
+	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY,
USB_DEVICE_ID_ESSENTIAL_REALITY_P5) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) }, diff
--git a/drivers/input/mouse/elan_i2c_core.c
b/drivers/input/mouse/elan_i2c_core.c
index 67388f4..3f1eef0 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -98,6 +98,7 @@ static int elan_get_fwinfo(u8 ic_type, u16
*vaildpage_count,
 			   u16 *signature_address)
 {
 	switch(ic_type) {
+	case 0x08:


 	case 0x09:
 		*vaildpage_count = 768;
 		break;
@@ -1165,6 +1166,7 @@ MODULE_DEVICE_TABLE(i2c, elan_id);  #ifdef CONFIG_ACPI
static const struct acpi_device_id elan_acpi_id[] = {
 	{ "ELAN0000", 0 },
+	{ "ELAN0100", 0 },
 	{ "ELAN0600", 0 },
 	{ }
 };
--
2.5.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels
@ 2015-08-22  7:28   ` DusonLin
  0 siblings, 0 replies; 4+ messages in thread
From: DusonLin @ 2015-08-22  7:28 UTC (permalink / raw)
  To: 'Michele Curti', jikos, dmitry.torokhov
  Cc: bleung, k.kozlowski, charliemooney, benjamin.tissoires,
	linux-input, linux-kernel

Hi Michele,

The vaildpage_count for type 0x08 should be 512, not 768.

Thanks
Duson

-----Original Message-----
From: Michele Curti [mailto:michele.curti@gmail.com] 
Sent: Saturday, August 22, 2015 2:59 PM
To: jikos@kernel.org; dmitry.torokhov@gmail.com; dusonlin@emc.com.tw
Cc: bleung@chromium.org; k.kozlowski@samsung.com;
charliemooney@chromium.org; benjamin.tissoires@redhat.com;
linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; Michele Curti
Subject: [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels

Enable ELAN0100 touchpad driver, found on a Asus X205TA laptop, to gain 2,3
fingers tap and 2 fingers scroll.

Signed-off-by: Michele Curti <michele.curti@gmail.com>
---
 drivers/hid/hid-core.c              | 1 +
 drivers/input/mouse/elan_i2c_core.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index
22afab9..70a11ac 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -2294,6 +2294,7 @@ static const struct hid_device_id hid_ignore_list[] =
{
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x0004) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x000a) },
 	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) },
+	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY,
USB_DEVICE_ID_ESSENTIAL_REALITY_P5) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) }, diff
--git a/drivers/input/mouse/elan_i2c_core.c
b/drivers/input/mouse/elan_i2c_core.c
index 67388f4..3f1eef0 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -98,6 +98,7 @@ static int elan_get_fwinfo(u8 ic_type, u16
*vaildpage_count,
 			   u16 *signature_address)
 {
 	switch(ic_type) {
+	case 0x08:


 	case 0x09:
 		*vaildpage_count = 768;
 		break;
@@ -1165,6 +1166,7 @@ MODULE_DEVICE_TABLE(i2c, elan_id);  #ifdef CONFIG_ACPI
static const struct acpi_device_id elan_acpi_id[] = {
 	{ "ELAN0000", 0 },
+	{ "ELAN0100", 0 },
 	{ "ELAN0600", 0 },
 	{ }
 };
--
2.5.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels
  2015-08-22  7:28   ` DusonLin
  (?)
@ 2015-08-22  7:39   ` Michele Curti
  -1 siblings, 0 replies; 4+ messages in thread
From: Michele Curti @ 2015-08-22  7:39 UTC (permalink / raw)
  To: DusonLin
  Cc: jikos, dmitry.torokhov, bleung, k.kozlowski, charliemooney,
	benjamin.tissoires, linux-input, linux-kernel

On Sat, Aug 22, 2015 at 03:28:19PM +0800, DusonLin wrote:
> Hi Michele,
> 
> The vaildpage_count for type 0x08 should be 512, not 768.
>

Thank you! Sent a v2 patch :)

Regards,
Michele

> Thanks
> Duson
> 
> -----Original Message-----
> From: Michele Curti [mailto:michele.curti@gmail.com] 
> Sent: Saturday, August 22, 2015 2:59 PM
> To: jikos@kernel.org; dmitry.torokhov@gmail.com; dusonlin@emc.com.tw
> Cc: bleung@chromium.org; k.kozlowski@samsung.com;
> charliemooney@chromium.org; benjamin.tissoires@redhat.com;
> linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; Michele Curti
> Subject: [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels
> 
> Enable ELAN0100 touchpad driver, found on a Asus X205TA laptop, to gain 2,3
> fingers tap and 2 fingers scroll.
> 
> Signed-off-by: Michele Curti <michele.curti@gmail.com>
> ---
>  drivers/hid/hid-core.c              | 1 +
>  drivers/input/mouse/elan_i2c_core.c | 2 ++
>  2 files changed, 3 insertions(+)
> 
> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index
> 22afab9..70a11ac 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -2294,6 +2294,7 @@ static const struct hid_device_id hid_ignore_list[] =
> {
>  	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x0004) },
>  	{ HID_USB_DEVICE(USB_VENDOR_ID_DREAM_CHEEKY, 0x000a) },
>  	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) },
> +	{ HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) },
>  	{ HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY,
> USB_DEVICE_ID_ESSENTIAL_REALITY_P5) },
>  	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) },
>  	{ HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) }, diff
> --git a/drivers/input/mouse/elan_i2c_core.c
> b/drivers/input/mouse/elan_i2c_core.c
> index 67388f4..3f1eef0 100644
> --- a/drivers/input/mouse/elan_i2c_core.c
> +++ b/drivers/input/mouse/elan_i2c_core.c
> @@ -98,6 +98,7 @@ static int elan_get_fwinfo(u8 ic_type, u16
> *vaildpage_count,
>  			   u16 *signature_address)
>  {
>  	switch(ic_type) {
> +	case 0x08:
> 
> 
>  	case 0x09:
>  		*vaildpage_count = 768;
>  		break;
> @@ -1165,6 +1166,7 @@ MODULE_DEVICE_TABLE(i2c, elan_id);  #ifdef CONFIG_ACPI
> static const struct acpi_device_id elan_acpi_id[] = {
>  	{ "ELAN0000", 0 },
> +	{ "ELAN0100", 0 },
>  	{ "ELAN0600", 0 },
>  	{ }
>  };
> --
> 2.5.0
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-22  7:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-22  6:58 [PATCH] Input: elan_i2c - enable ELAN0100 acpi panels Michele Curti
2015-08-22  7:28 ` DusonLin
2015-08-22  7:28   ` DusonLin
2015-08-22  7:39   ` Michele Curti

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.