All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Ragwitz <rafl@debian.org>
To: linux-input@vger.kernel.org
Cc: Florian Ragwitz <rafl@debian.org>
Subject: [PATCH 1/4] Input: elantech - Assume all firmware versions >= 2.48 use 6 byte packets
Date: Sat, 24 Apr 2010 22:40:59 +0200	[thread overview]
Message-ID: <1272141662-23431-2-git-send-email-rafl@debian.org> (raw)
In-Reply-To: <1272141662-23431-1-git-send-email-rafl@debian.org>

This way firmware versions with a major version > 2, but a minor version < 48,
like version 4.1, will be recognized correctly.

Signed-off-by: Florian Ragwitz <rafl@debian.org>
---
 drivers/input/mouse/elantech.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
index a138b5d..07f6b17 100644
--- a/drivers/input/mouse/elantech.c
+++ b/drivers/input/mouse/elantech.c
@@ -666,7 +666,8 @@ int elantech_init(struct psmouse *psmouse)
 	 * Assume every version greater than this is new EeePC style
 	 * hardware with 6 byte packets
 	 */
-	if (etd->fw_version_maj >= 0x02 && etd->fw_version_min >= 0x30) {
+	if ((etd->fw_version_maj == 0x02 && etd->fw_version_min >= 0x30) ||
+	    etd->fw_version_maj > 0x02) {
 		etd->hw_version = 2;
 		/* For now show extra debug information */
 		etd->debug = 1;
-- 
1.7.0.5


  reply	other threads:[~2010-04-24 21:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-24 20:40 Getting recent elantech touchpads to work with synaptics Florian Ragwitz
2010-04-24 20:40 ` Florian Ragwitz [this message]
2010-04-26 14:19   ` Florian Ragwitz
2010-04-27  7:36     ` Dmitry Torokhov
2010-04-27 14:58       ` Florian Ragwitz
2010-04-27 14:58       ` [PATCH] Update elantech documentation Florian Ragwitz
2010-04-24 20:41 ` [PATCH 2/4] Input: Add an option to force the use of the elantech extension Florian Ragwitz
2010-04-24 20:41 ` [PATCH 3/4] Input: elantech - Ignore high bits in the position coordinates Florian Ragwitz
2010-04-24 20:41 ` [PATCH 4/4] Input: elantech - Whitelist new models with firmware version 4.1 Florian Ragwitz

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=1272141662-23431-2-git-send-email-rafl@debian.org \
    --to=rafl@debian.org \
    --cc=linux-input@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 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.