From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Len Brown <lenb@kernel.org>,
Guillem Jover <guillem.jover@nokia.com>,
linux-acpi@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH] ACPI: Always report a sync event after a lid state change
Date: Sun, 26 Oct 2008 12:00:45 +0100 [thread overview]
Message-ID: <200810261200.46248.rjw@sisk.pl> (raw)
In-Reply-To: <200810252203.35219.dmitry.torokhov@gmail.com>
On Sunday, 26 of October 2008, Dmitry Torokhov wrote:
> Hi Len,
>
> On Friday 24 October 2008, Len Brown wrote:
> > Dmitry,
> >
> > Looking around the tree, the other calls to
> > input_report_switch() and input_report_key()
> > are all followed by input_sync().
> >
>
> The idea is that userspace can accumulate input events and not act on
> them till it gets the "whole state" of the device which is indicated by
> sending EV_SYN/SYN_REPORT event. This really does not matter for most
> of the simple devices (such as most button devices) but is required
> when you need to report state of a touchpad or a tablet (ABS_X, ABS_Y,
> ABS_PRESSURE, host of buttons and so on). And that is the reason to have
> 2 input_sync when you you reporting button down and up back to back -
> if there was only one input_sync userspace may (although I don't think
> anyone does) wait to reacting till the sync and by that time the up event
> will "cancel out" the down event.
>
> > I guess we didn't understand the API when we added
> > these calls to button.c?
> >
>
> The code was fine until acpi_lid_send_state was used un resume path,
> then it needed its own input_sync.
>
> > Looks like the other users of input_report_* in
> > drivers/acpi and drivers/misc are okay,
> > with the exception of toshiba_acpi.c --
> > the most neglected driver we have,
> > so I"ll do the same to that one?
> >
> > Ack?
>
> Yep.
-stable material?
Rafael
next prev parent reply other threads:[~2008-10-26 11:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 21:28 [PATCH] ACPI: Always report a sync event after a lid state change Guillem Jover
2008-10-24 19:37 ` Len Brown
2008-10-26 2:03 ` Dmitry Torokhov
2008-10-26 11:00 ` Rafael J. Wysocki [this message]
2008-10-27 0:16 ` 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=200810261200.46248.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=dmitry.torokhov@gmail.com \
--cc=guillem.jover@nokia.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.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 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).