Re: [PATCH 1/2] input: Allow filtering of i8042 events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 09, 2009 at 08:16:20PM +0000, Matthew Garrett wrote:
> On Wed, Dec 09, 2009 at 12:06:15PM -0800, Dmitry Torokhov wrote:
> 
> > 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.
> 
> Wouldn't that require me to be able to process any conceivable mouse 
> protocol as well?

No, just have your filter function check STR to make sure the byte you got
is not coming from AUX. Or we could say that filter only works for data
pretending to be coming from KBD (because in reality the data we are
trying to filter out comes only this way) and move the check into i8042
itself.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux