public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Matthew Garrett <mjg@redhat.com>
Cc: linux-input@vger.kernel.org, linux-acpi@vger.kernel.org, lenb@kernel.org
Subject: Re: [PATCH 1/2] input: Allow filtering of i8042 events
Date: Wed, 9 Dec 2009 12:06:15 -0800	[thread overview]
Message-ID: <20091209200614.GA10138@core.coreip.homeip.net> (raw)
In-Reply-To: <1260383609-7681-1-git-send-email-mjg@redhat.com>

Hi Matthew,

On Wed, Dec 09, 2009 at 01:33:28PM -0500, Matthew Garrett wrote:
> Some hardware (such as Dell laptops) signal a variety of events through the
> i8042 controller, even if these don't map to keyboard events. Add support
> for drivers to filter the i8042 event stream in order to respond to these
> events and (if appropriate) block them from entering the input stream.
> 

This is certainly going in the direction I wanted but it looks like
it is more complex than it needs to be. Why don't you just allow
installing global filter for entire i8042 (pass the status register
there along with data byte)? The data you are interested in goes kind of
"ouside" KBD/AUX port abstraction anyway...  Plus currently you are not
handling MUX case properly.

Also I don't think you need to handle the case when we install the same
filter twice? Just always return -EBUSY if there is a filter already and
let drivers keep track of their own stuff and not register tehir filters
twice.

Thanks.

-- 
Dmitry

  parent reply	other threads:[~2009-12-09 20:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-09 18:33 [PATCH 1/2] input: Allow filtering of i8042 events Matthew Garrett
2009-12-09 18:33 ` [PATCH 2/2] dell-laptop: Update rfkill state on kill switch Matthew Garrett
2009-12-09 20:07   ` Dmitry Torokhov
2009-12-09 20:06 ` Dmitry Torokhov [this message]
2009-12-09 20:16   ` [PATCH 1/2] input: Allow filtering of i8042 events Matthew Garrett
2009-12-09 20:39     ` Dmitry Torokhov
2009-12-10 23:25       ` Matthew Garrett
2009-12-10 23:25         ` [PATCH 2/2] dell-laptop: Update rfkill state on kill switch Matthew Garrett
2009-12-29 10:01           ` Dmitry Torokhov
2009-12-11  7:59         ` [PATCH 1/2] input: Allow filtering of i8042 events Dmitry Torokhov
2009-12-11 12:46           ` Matthew Garrett

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=20091209200614.GA10138@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=mjg@redhat.com \
    /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