Message ID | 1443460879-3839-1-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
Hi Luis, On Mon, Sep 28, 2015 at 10:21 AM, Luis Henriques <luis.henriques@canonical.com> wrote: > This is a note to let you know that I have just added a patch titled > > Input: synaptics - fix handling of disabling gesture mode > > to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree > which can be found at: > > http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y-queue > > This patch is scheduled to be released in version 3.16.7-ckt18. > > If you, or anyone else, feels it should not be added to this tree, please > reply to this email. Please hold off applying this just yet - there might have been issues with this patch. Thanks.
On Mon, Sep 28, 2015 at 11:50:44AM -0700, Dmitry Torokhov wrote: > Hi Luis, > > > On Mon, Sep 28, 2015 at 10:21 AM, Luis Henriques > <luis.henriques@canonical.com> wrote: > > This is a note to let you know that I have just added a patch titled > > > > Input: synaptics - fix handling of disabling gesture mode > > > > to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree > > which can be found at: > > > > http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y-queue > > > > This patch is scheduled to be released in version 3.16.7-ckt18. > > > > If you, or anyone else, feels it should not be added to this tree, please > > reply to this email. > > Please hold off applying this just yet - there might have been issues > with this patch. Thank you Dmitry. Is there any public discussion on this? Also, please note that other kernels already have queued this patch (but none has been released yet). Cheers, -- Luís
On Tue, Sep 29, 2015 at 10:25:26AM +0100, Luis Henriques wrote: > On Mon, Sep 28, 2015 at 11:50:44AM -0700, Dmitry Torokhov wrote: > > Hi Luis, > > > > > > On Mon, Sep 28, 2015 at 10:21 AM, Luis Henriques > > <luis.henriques@canonical.com> wrote: > > > This is a note to let you know that I have just added a patch titled > > > > > > Input: synaptics - fix handling of disabling gesture mode > > > > > > to the linux-3.16.y-queue branch of the 3.16.y-ckt extended stable tree > > > which can be found at: > > > > > > http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.16.y-queue > > > > > > This patch is scheduled to be released in version 3.16.7-ckt18. > > > > > > If you, or anyone else, feels it should not be added to this tree, please > > > reply to this email. > > > > Please hold off applying this just yet - there might have been issues > > with this patch. > > Thank you Dmitry. Is there any public discussion on this? Also, please > note that other kernels already have queued this patch (but none has been > released yet). > Ok, found the discussion[1] and looks like other kernels are also dropping this. Removing it from 3.16. Again, thanks Dmitry [1] http://www.spinics.net/lists/linux-input/msg41176.html Cheers, -- Luís
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 378af3fa747d..3ff89b52f10e 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -487,14 +487,18 @@ static int synaptics_set_mode(struct psmouse *psmouse) struct synaptics_data *priv = psmouse->private; priv->mode = 0; - if (priv->absolute_mode) + + if (priv->absolute_mode) { priv->mode |= SYN_BIT_ABSOLUTE_MODE; - if (priv->disable_gesture) + if (SYN_CAP_EXTENDED(priv->capabilities)) + priv->mode |= SYN_BIT_W_MODE; + } + + if (!SYN_MODE_WMODE(priv->mode) && priv->disable_gesture) priv->mode |= SYN_BIT_DISABLE_GESTURE; + if (psmouse->rate >= 80) priv->mode |= SYN_BIT_HIGH_RATE; - if (SYN_CAP_EXTENDED(priv->capabilities)) - priv->mode |= SYN_BIT_W_MODE; if (synaptics_mode_cmd(psmouse, priv->mode)) return -1;