From: Carlos Corbacho <carlos@strangeworlds.co.uk>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ivo van Doorn <ivdoorn@gmail.com>, linux-input@vger.kernel.org
Subject: Re: rfkill-input understanding help
Date: Tue, 22 Jan 2008 00:55:37 +0000 [thread overview]
Message-ID: <200801220055.39044.carlos@strangeworlds.co.uk> (raw)
In-Reply-To: <200801120032.41263.carlos@strangeworlds.co.uk>
On Saturday 12 January 2008 00:32:40 Carlos Corbacho wrote:
> On Friday 11 January 2008 20:34:09 Dmitry Torokhov wrote:
> > On Jan 11, 2008 2:08 PM, Ivo van Doorn <ivdoorn@gmail.com> wrote:
> > > Perhaps the rfkill-input needs to be registered before input
> > > devices are being registered. But I am not sure, Dmitry propably
> > > knows more about possible ordering requirements for input
> > > device and input trigger registration.
> >
> > No, it is ok for rfkill-input handler to be installed later, but of
> > course it will miss any events that happen before.
>
> Unfortunately, moving the load order of rfkill-input doesn't solve my
> acer-wmi problems:
Some experimentation shows that something is going wrong in input.c -
rfkill_connect() is not being executed on the first load of rfkill-input.
Shoving some printk's into input.c shows that it fails in
input_match_handler() on:
id = input_match_device(handler->id_table, dev);
if (!id)
return -ENODEV;
This test always fails for every call of input_match_handler() in
input_register_handler().
Unloading and reloading rfkill-input then somehow causes this test to not
fail, and rfkill-input is then properly registered...
-Carlos
--
E-Mail: carlos@strangeworlds.co.uk
Web: strangeworlds.co.uk
GPG Key ID: 0x23EE722D
next prev parent reply other threads:[~2008-01-22 0:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 3:33 rfkill-input understanding help Carlos Corbacho
2007-12-30 18:59 ` Ivo van Doorn
2007-12-31 1:00 ` Carlos Corbacho
2008-01-02 19:10 ` Ivo van Doorn
2008-01-11 3:23 ` Carlos Corbacho
2008-01-11 19:08 ` Ivo van Doorn
2008-01-11 20:34 ` Dmitry Torokhov
2008-01-12 0:32 ` Carlos Corbacho
2008-01-22 0:55 ` Carlos Corbacho [this message]
2008-04-12 17:21 ` Carlos Corbacho
2008-04-13 11:23 ` Carlos Corbacho
2008-04-14 18:12 ` 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=200801220055.39044.carlos@strangeworlds.co.uk \
--to=carlos@strangeworlds.co.uk \
--cc=dmitry.torokhov@gmail.com \
--cc=ivdoorn@gmail.com \
--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).