linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: Thomas Rohwer <tr@tng.de>
Cc: linux-input@atrey.karlin.mff.cuni.cz,
	Soeren Sonnenburg <kernel@nn7.de>,
	Matthew Garrett <mjg59@srcf.ucam.org>
Subject: Re: Problem with appletouch driver in Linux version 2.6.23-rc7
Date: Mon, 24 Sep 2007 08:40:56 -0400	[thread overview]
Message-ID: <d120d5000709240540ic91832em277a6bcbb399cd45@mail.gmail.com> (raw)
In-Reply-To: <46F54D92.7000300@tng.de>

Hi Thomas,

On 9/22/07, Thomas Rohwer <tr@tng.de> wrote:
> Hello,
>
> I tried Linux version 2.6.23-rc7 on my macbook pro using the appletouch input driver.
> I noticed that often release events for the touchpad button are missing. This does not
> occur with Linux version 2.6.22. I suppose this is related to the new reset logic in
> the driver introduced in 2.6.23. If a reset occurs while the button is pressed the
> release event seems to be not sent sometimes. The attached patch fixes the problem for me. It
> changes the count towards idle so that the count is only incremented if the touchpad
> button is not pressed. I also attached the output of lsusb.txt.
>
> As I am not subscribed to the list, please cc me in replies.
>

Yep, this makes sense, thank you for the patch. Couple of comments:

>        y = atp_calculate_abs(dev->xy_acc + ATP_XSENSORS, ATP_YSENSORS,
>                              ATP_YFACT, &y_z, &y_f);
>
> +       int key= dev->data[dev->datalen - 1] & 1;

We do not normally put variable definitions in the middle of the code
but at the beginning of the block.

>                   the first touch unless reinitialised. Do so if it's been
>                   idle for a while in order to avoid waking the kernel up
>                   several hundred times a second */
> !               if (atp_is_geyser_3(dev)) {

Unified diffs please.

I will fix these up myself, you don't need to resubmit the patch. I
only need "Signed-off-by: ... " line from you. Thanks!

-- 
Dmitry

  reply	other threads:[~2007-09-24 12:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-22 17:14 Problem with appletouch driver in Linux version 2.6.23-rc7 Thomas Rohwer
2007-09-24 12:40 ` Dmitry Torokhov [this message]
2007-09-24 12:49   ` Matthew Garrett
2007-09-24 13:03   ` Soeren Sonnenburg
2007-09-24 13:22     ` Thomas Rohwer
2007-09-26 19:56       ` Soeren Sonnenburg
2007-09-26 20:13         ` Dmitry Torokhov
2007-09-27 17:51           ` Soeren Sonnenburg
2007-09-27 21:08             ` Thomas Rohwer
2007-10-13 21:33               ` Soeren Sonnenburg
2007-10-13 21:44                 ` Matthew Garrett
2007-10-15 13:09                 ` Dmitry Torokhov
2007-09-24 13:10   ` Thomas Rohwer

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=d120d5000709240540ic91832em277a6bcbb399cd45@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=kernel@nn7.de \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    --cc=mjg59@srcf.ucam.org \
    --cc=tr@tng.de \
    /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).