From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Daniel Drake <dsd@laptop.org>,
Peter Hutterer <peter.hutterer@who-t.net>,
"X.Org Devel List" <xorg-devel@lists.freedesktop.org>,
Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Multitouch regression in 3.3 on thinkpad X220 clickpad
Date: Sat, 21 Apr 2012 10:16:40 +1000 [thread overview]
Message-ID: <1334967400.3312.4.camel@pasglop> (raw)
In-Reply-To: <20120420170132.GA32261@core.coreip.homeip.net>
On Fri, 2012-04-20 at 10:01 -0700, Dmitry Torokhov wrote:
> It looks we lost a condition in synaptics_set_advanced_gesture_mode().
> It used to be:
>
>
> if (!(SYN_CAP_ADV_GESTURE(priv->ext_cap_0c) ||
> SYN_CAP_IMAGE_SENSOR(priv->ext_cap_0c)))
> return 0;
>
> and now simply is:
>
> if (!SYN_CAP_ADV_GESTURE(priv->ext_cap_0c))
> return 0;
>
> Could you try restoring the condition and see if it fixes the
> regression?
Yes, that's it. Please shoot the patch below to Linus.
Thanks,
Ben.
input/synaptics: Fix regression with "image sensor" trackpads
commit 7968a5dd492ccc38345013e534ad4c8d6eb60ed1
Input: synaptics - add support for Relative mode
Accidentally broke support for advanced gestures (multitouch)
on some trackpads such as the one in my ThinkPad X220 by
incorretly changing the condition for enabling them. This
restores it.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: stable@kernel.org [3.3]
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index a3bb49c..37b3792 100644
--- a/drivers/input/mouse/synaptics.c
+++ b/drivers/input/mouse/synaptics.c
@@ -273,7 +273,8 @@ static int synaptics_set_advanced_gesture_mode(struct psmouse *psmouse)
static unsigned char param = 0xc8;
struct synaptics_data *priv = psmouse->private;
- if (!SYN_CAP_ADV_GESTURE(priv->ext_cap_0c))
+ if (!(SYN_CAP_ADV_GESTURE(priv->ext_cap_0c) ||
+ SYN_CAP_IMAGE_SENSOR(priv->ext_cap_0c)))
return 0;
if (psmouse_sliced_command(psmouse, SYN_QUE_MODEL))
next prev parent reply other threads:[~2012-04-21 0:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-20 7:21 Benjamin Herrenschmidt
2012-04-20 14:27 ` Daniel Drake
2012-04-20 17:01 ` Dmitry Torokhov
2012-04-21 0:16 ` Benjamin Herrenschmidt [this message]
2012-04-21 6:00 ` Dmitry Torokhov
2012-04-21 15:03 ` Daniel Drake
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=1334967400.3312.4.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=dmitry.torokhov@gmail.com \
--cc=dsd@laptop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.hutterer@who-t.net \
--cc=xorg-devel@lists.freedesktop.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
Powered by JetHome