From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Sau Dan Lee <danlee@informatik.uni-freiburg.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC/RFT] Raw access to serio ports (2/2)
Date: Wed, 2 Jun 2004 07:33:22 -0500 [thread overview]
Message-ID: <200406020733.22737.dtor_core@ameritech.net> (raw)
In-Reply-To: <xb7d64i5lxb.fsf@savona.informatik.uni-freiburg.de>
On Wednesday 02 June 2004 04:49 am, Sau Dan Lee wrote:
> >>>>> "Dmitry" == Dmitry Torokhov <dtor_core@ameritech.net> writes:
>
> Dmitry> +static unsigned int i8042_aux_raw[4];
>
> So, only AUX ports can be directly accessed? No direct access to
> keyboard port? Why?
>
Keyboards are to be handled in-kernel, at least for now. If there really
a need we can enable grabbing keyboard as well, no big deal.
> The SERIO_USERDEV patch does allow direct access to the PC AT
> keyboard, and it did help me locate the SysRq problem that I reported
> in other postings. i.e. it IS useful to be able to access the
> keyboard port directly.
>
Vojtech has a patch for that - now raw (really raw) codes are reported via
EV_MSC/MSC_RAW event.
>
> Dmitry> The driver will happily co-exist with psmouse and atkbd
> Dmitry> loaded as they ignore SERIO_8042_RAW ports, so it is
> Dmitry> possible to have one AUX port in raw mode and other in
> Dmitry> standard 2.6 mode.
>
> 1) there is no RAW access to the keyboard port;
>
> 2) I hate this black magic, in which the input "devices"
> (i.e. drivers) kidnap the serio ports they like according to the
> port type SERIO_8042_RAW, etc. That's a kind of hardcoding the
> binding between ports and drivers.
We do have some hardcoding so atkbd does not try to grab a serio linked
to a serial port and sermouse does not try grabbing keyboard port, etc..
There is nothing new.
>
>
> Isn't it better to leave the AUX ports as SERIO_8042, and let the user
> dynamically change this port<-->driver binding? Then, we don't even
> need that ugly "i8042.raw" boot parameter or i8042_aux_raw option.
> The user can decide which ports are connected to your serio_raw
> driver, and which ports are connected to psmouse.ko. That would also
> allow multiple drivers driving the ports of the same type.
>
Yes, that's the perfect solution, but I believe we need sysfs for that
and at least I started working on it, but it takes time. In the meantime
i8042.raw should alleviate most of the user's troubles with their input
devices no longer working.
--
Dmitry
next prev parent reply other threads:[~2004-06-02 12:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-02 9:49 [RFC/RFT] Raw access to serio ports (2/2) Sau Dan Lee
2004-06-02 12:33 ` Dmitry Torokhov [this message]
2004-06-02 17:24 ` [PATCH] serio.c: dynamically control serio ports bindings via procfs (Was: [RFC/RFT] Raw access to serio ports) Sau Dan Lee
2004-06-02 17:49 ` [PATCH] serio.c: dynamically control serio ports bindings via procfs Sau Dan Lee
[not found] <200406020216.36568.dtor_core@ameritech.net>
2004-06-02 7:17 ` [RFC/RFT] Raw access to serio ports (2/2) 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=200406020733.22737.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=danlee@informatik.uni-freiburg.de \
--cc=linux-kernel@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