From: Henrik Rydberg <rydberg@bitmath.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Henrik Rydberg <rydberg@euromail.se>,
Andrew Morton <akpm@linux-foundation.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] input: mt: Simplify event bypass logic
Date: Fri, 14 May 2010 10:18:56 +0200 [thread overview]
Message-ID: <4BED0770.3080608@bitmath.org> (raw)
In-Reply-To: <20100504064905.GB17482@core.coreip.homeip.net>
Dmitry Torokhov wrote:
> On Sat, May 01, 2010 at 03:49:39PM +0200, Henrik Rydberg wrote:
>> The input bypass mechanism is only used by the MT events. Since all
>> MT events use bypassing by construction, the current list is a mere
>> duplication of input.h. This patch replaces the bypass list by a
>> simple range test.
>>
>
> Henrik,
>
> I disagree with the patch. I can not guarantee that we will be able to
> maintain continuous range of ABS_MT_* events and thus current scheme is
> more flexible.
Coming back to this, the current scheme has problems, too.
With the introduction of slots, all events, not only EV_ABS events, are
implicitly partitioned into global events and per-slot events. In the current
approach, the partitioning is controlled via the hidden list in input.c, and
hinted using the prefix MT. However, expecting the usage of slots to grow
outside of a linear range of EV_ABS events, the user will inevitably need to
known the semantics of particular events in order to parse correctly. And once
the user starts to deal with that information, it can just as well be dynamic,
and controlled by the device driver.
My proposition is to add a bit field in input_dev which controls whether a
particular event is used in the slot context or the global context. This
information should be user-readable via EVIO. The driver should be able to alter
these settings, and the default should match the current behavior.
Thoughts?
Cheers,
Henrik
prev parent reply other threads:[~2010-05-14 8:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-01 13:49 [PATCH 1/3] input: mt: Simplify event bypass logic Henrik Rydberg
2010-05-04 6:49 ` Dmitry Torokhov
2010-05-04 7:34 ` Henrik Rydberg
2010-05-14 8:18 ` Henrik Rydberg [this message]
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=4BED0770.3080608@bitmath.org \
--to=rydberg@bitmath.org \
--cc=akpm@linux-foundation.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rydberg@euromail.se \
/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).