linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chase Douglas <chase.douglas@canonical.com>
To: Oskari Saarenmaa <os@ohmu.fi>
Cc: Tai-hwa Liang <avatar@sentelic.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	linux-input@vger.kernel.org
Subject: Re: [PATCH] Input: sentelic - filter on-pad clicks in absolute mode
Date: Mon, 02 Apr 2012 07:22:24 -0700	[thread overview]
Message-ID: <4F79B620.7030800@canonical.com> (raw)
In-Reply-To: <20120401183037.GA23849@timantti.taisia.fi>

On 04/01/2012 11:30 AM, Oskari Saarenmaa wrote:
> On-pad clicks in absolute positioning single-finger mode are reported
> without the PHY_BTN bit set, the on-pad clicks are handled by userspace
> so the kernel shouldn't report them as real clicks.

What is the definition of an "on-pad" click?

> Signed-off-by: Oskari Saarenmaa <os@ohmu.fi>
> ---
>  Applies to v3.4-rc1
> 
>  drivers/input/mouse/sentelic.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/input/mouse/sentelic.c b/drivers/input/mouse/sentelic.c
> index a977bfa..d4df8cd 100644
> --- a/drivers/input/mouse/sentelic.c
> +++ b/drivers/input/mouse/sentelic.c
> @@ -741,6 +741,14 @@ static psmouse_ret_t fsp_process_byte(struct psmouse *psmouse)
>  			}
>  		} else {
>  			/* SFAC packet */
> +			if ((packet[0] & FSP_PB0_LBTN|FSP_PB0_PHY_BTN) ==
> +				FSP_PB0_LBTN) {
> +				/* On-pad click in SFAC mode should be handled
> +				 * by userspace.  On-pad clicks in MFMC mode
> +				 * are real clickpad clicks, and not ignored.
> +				 */
> +				packet[0] &= ~FSP_PB0_LBTN;
> +			}
>  
>  			/* no multi-finger information */
>  			ad->last_mt_fgr = 0;


  reply	other threads:[~2012-04-02 14:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-01 18:30 [PATCH] Input: sentelic - filter on-pad clicks in absolute mode Oskari Saarenmaa
2012-04-02 14:22 ` Chase Douglas [this message]
2012-04-02 14:57   ` Oskari Saarenmaa
2012-04-02 15:05     ` Chase Douglas
2012-04-02 15:37       ` Oskari Saarenmaa
2012-04-02 16:04         ` Dmitry Torokhov
2012-04-02 16:06           ` Tai-hwa Liang
2012-04-02 16:35         ` Chase Douglas
2012-04-03  6:59           ` [PATCHv2] Input: sentelic - filter taps " Oskari Saarenmaa
2012-04-03 16:46             ` 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=4F79B620.7030800@canonical.com \
    --to=chase.douglas@canonical.com \
    --cc=avatar@sentelic.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=os@ohmu.fi \
    /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;
as well as URLs for NNTP newsgroup(s).