linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dtor_core@ameritech.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: vojtech@suse.cz, linux-kernel@vger.kernel.org
Subject: Re: Input: sunkbd concern
Date: Tue, 26 Oct 2004 20:32:27 -0500	[thread overview]
Message-ID: <200410262032.27938.dtor_core@ameritech.net> (raw)
In-Reply-To: <20041026180622.14fc6268.davem@davemloft.net>

On Tuesday 26 October 2004 08:06 pm, David S. Miller wrote:
> On Fri, 22 Oct 2004 18:33:04 -0500
> Dmitry Torokhov <dtor_core@ameritech.net> wrote:
> 
> > I have been looking at sunkbd.c and it seems that it attaches not only to
> > ports that speak SUNKBD protocol but also to ports that do not specify any
> > protocol:
> > 
> > 	if ((serio->type & SERIO_PROTO) && (serio->type & SERIO_PROTO) != SERIO_SUNKBD)
> > 		return;
> > 
> > Was that an oversight or it was done intentionally?
> 
> I believe it is intentional.
> 
> If SERIO_PROTO bits are all clear, this is supposed to have
> a special meaning in that any keyboard driver can claim
> the serio line.
> 
> So if it's the "wildcard" zero value, or specifically SERIO_SUNKBD,
> we'll attach to it.
> 

I would buy if I see another keyboard doing this, but so far only sunkbd
does this. The rest of keyboards connecting to a RS232-type ports require
exact protocol match...

The background is that I am trying to create a bus "match" function for
serio and trying to understand the requirements... 
 
-- 
Dmitry

  reply	other threads:[~2004-10-27  1:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 23:33 Input: sunkbd concern Dmitry Torokhov
2004-10-27  1:06 ` David S. Miller
2004-10-27  1:32   ` Dmitry Torokhov [this message]
2004-10-27  5:47     ` Vojtech Pavlik
2004-10-27  6:08       ` 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=200410262032.27938.dtor_core@ameritech.net \
    --to=dtor_core@ameritech.net \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.cz \
    /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).