public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
From: Matti Kurkela <Matti.Kurkela@iki.fi>
To: dmitry.torokhov@gmail.com
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: input: elantech - force needed quirks on Fujitsu H760
Date: Mon, 3 Oct 2016 21:18:28 +0300 (EEST)	[thread overview]
Message-ID: <alpine.DEB.2.11.1610032112360.18699@melchior.home> (raw)


Just like Fujitsu CELSIUS H730, the H760 also has an Elantech touchpad 
with the same quirks. Without this patch, the touchpad is useless 
out-of-the-box as the mouse pointer won't move.

This patch makes the driver aware of both the crc_enabled=1
requirement and the middle button, making the touchpad fully
functional out-of-the-box.

Signed-off-by: Matti Kurkela <Matti.Kurkela@iki.fi>
---
This patch will also apply without changes to older kernel versions:
I made this originally on 4.4.19 and am currently using it on
my work laptop with 4.4.22.

Backporting to any version that includes commit
f386474e12a560e005ec7899e78f51f6bdc3cf41 should be trivial.

--- linux-4.8/drivers/input/mouse/elantech.c.orig	2016-10-03 02:24:33.000000000 +0300
+++ linux-4.8/drivers/input/mouse/elantech.c	2016-10-03 20:19:17.175141070 +0300
@@ -1159,6 +1159,13 @@ static const struct dmi_system_id elante
  			DMI_MATCH(DMI_PRODUCT_NAME, "CELSIUS H730"),
  		},
  	},
+	{
+		/* Fujitsu H760 also has a middle button */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "CELSIUS H760"),
+		},
+	},
  #endif
  	{ }
  };
@@ -1503,6 +1510,13 @@ static const struct dmi_system_id elante
  		},
  	},
  	{
+		/* Fujitsu H760 does not work with crc_enabled == 0 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "CELSIUS H760"),
+		},
+	},
+	{
  		/* Fujitsu LIFEBOOK E554  does not work with crc_enabled == 0 */
  		.matches = {
  			DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),

             reply	other threads:[~2016-10-03 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-03 18:18 Matti Kurkela [this message]
2016-10-04  0:28 ` input: elantech - force needed quirks on Fujitsu H760 Dmitry Torokhov

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=alpine.DEB.2.11.1610032112360.18699@melchior.home \
    --to=matti.kurkela@iki.fi \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox